diff options
Diffstat (limited to '')
-rw-r--r-- | ftdetect/polyglot.vim | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim index 5ff50332..3fb51075 100644 --- a/ftdetect/polyglot.vim +++ b/ftdetect/polyglot.vim @@ -79,9 +79,6 @@ augroup filetypedetect "jinja autocmd BufNewFile,BufRead *.jinja2,*.j2,*.jinja,*.nunjucks,*.nunjs,*.njk set ft=jinja - - "tsx - autocmd BufNewFile,BufRead *.tsx setfiletype typescript.jsx augroup END " Fix for https://github.com/sheerun/vim-polyglot/issues/236#issuecomment-387984954 @@ -1374,6 +1371,22 @@ au BufRead,BufNewFile *.ax set syntax=tptp augroup end endif +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'tsx') == -1 + augroup filetypedetect + " tsx, from typescript.vim in ianks/vim-tsx +""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" +" Vim ftdetect file +" +" Language: TSX (JavaScript) +" Maintainer: Ian Ker-Seymer <i.kerseymer@gmail.com> +" +""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" + +autocmd BufNewFile,BufRead *.tsx let b:tsx_ext_found = 1 +autocmd BufNewFile,BufRead *.tsx set filetype=typescript.tsx + augroup end +endif + if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'twig') == -1 augroup filetypedetect " twig, from twig.vim in lumiliet/vim-twig |