Ver Fonte

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

Andrew Swistak há 6 anos atrás
pai
commit
ef452d3a09
1 ficheiros alterados com 2 adições e 2 exclusões
  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