소스 검색

Hackily treat ts{,x} files like js{,x}

Andrew Swistak 6 년 전
부모
커밋
ef452d3a09
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      vimrc

+ 2 - 2
vimrc

@@ -571,5 +571,5 @@ let g:ale_lint_delay = 1000
 
 " ts/tsx highlighting sucks a lot and I'm not inclined to fix it right now.
 " Should be able to get by with using javascript{,.jsx} highlighting for now
-au BufRead,BufNewFile *.ts set filetype=javascript
-au BufRead,BufNewFile *.tsx set filetype=javascript.jsx
+au BufRead,BufNewFile *.ts set syn=javascript
+au BufRead,BufNewFile *.tsx set syn=javascript.jsx