浏览代码

Highlight ts[x] like js[x]

Andrew Swistak 6 年之前
父节点
当前提交
1e5b081a29
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 4 2
      vimrc

+ 4 - 2
vimrc

@@ -540,5 +540,7 @@ let g:ale_fixers = {
       \    'ruby': ['rubocop'],
       \}
 
-let g:ale_fix_on_save = 1
-let g:ale_lint_delay = 500
+" 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