Procházet zdrojové kódy

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

Andrew Swistak před 6 roky
rodič
revize
ef452d3a09
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  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