diff options
Diffstat (limited to 'ftdetect')
-rw-r--r-- | ftdetect/polyglot.vim | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim index 56508dc8..edf87bb7 100644 --- a/ftdetect/polyglot.vim +++ b/ftdetect/polyglot.vim @@ -985,14 +985,17 @@ endif if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'toml') == -1 " Rust uses several TOML config files that are not named with .toml. -autocmd BufNewFile,BufRead *.toml,Cargo.lock,.cargo/config set filetype=toml +autocmd BufNewFile,BufRead *.toml,Cargo.lock,*/.cargo/config set filetype=toml endif " ftdetect/typescript.vim if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1 -autocmd BufNewFile,BufRead *.ts,*.tsx setlocal filetype=typescript +" use `set filetype` to override default filetype=xml for *.ts files +autocmd BufNewFile,BufRead *.ts set filetype=typescript +" use `setfiletype` to not override any other plugins like ianks/vim-tsx +autocmd BufNewFile,BufRead *.tsx setfiletype typescript endif @@ -1018,6 +1021,20 @@ au BufRead,BufNewFile *.vm set ft=velocity syntax=velocity endif +" ftdetect/vim-literate-coffeescript.vim +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'coffee-script') == -1 + +" Language: Literate CoffeeScript +" Maintainer: Michael Smith <michael@diglumi.com> +" URL: https://github.com/mintplant/vim-literate-coffeescript +" License: MIT + +autocmd BufNewFile,BufRead *.litcoffee set filetype=litcoffee +autocmd BufNewFile,BufRead *.coffee.md set filetype=litcoffee + + +endif + " ftdetect/vue.vim if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'vue') == -1 |