Add tsx support, fixes #330
This commit is contained in:
parent
ebf81f7369
commit
b4cb58661e
@ -72,8 +72,8 @@ augroup filetypedetect
|
|||||||
"jinja
|
"jinja
|
||||||
autocmd BufNewFile,BufRead *.jinja2,*.j2,*.jinja,*.nunjucks,*.nunjs,*.njk set ft=jinja
|
autocmd BufNewFile,BufRead *.jinja2,*.j2,*.jinja,*.nunjucks,*.nunjs,*.njk set ft=jinja
|
||||||
|
|
||||||
"mdx
|
"tsx
|
||||||
autocmd BufNewFile,BufRead *.mdx set filetype=markdown.mdx
|
autocmd BufNewFile,BufRead *.tsx setfiletype typescript.jsx
|
||||||
augroup END
|
augroup END
|
||||||
|
|
||||||
" Fix for https://github.com/sheerun/vim-polyglot/issues/236#issuecomment-387984954
|
" Fix for https://github.com/sheerun/vim-polyglot/issues/236#issuecomment-387984954
|
||||||
|
@ -72,8 +72,8 @@ augroup filetypedetect
|
|||||||
"jinja
|
"jinja
|
||||||
autocmd BufNewFile,BufRead *.jinja2,*.j2,*.jinja,*.nunjucks,*.nunjs,*.njk set ft=jinja
|
autocmd BufNewFile,BufRead *.jinja2,*.j2,*.jinja,*.nunjucks,*.nunjs,*.njk set ft=jinja
|
||||||
|
|
||||||
"mdx
|
"tsx
|
||||||
autocmd BufNewFile,BufRead *.mdx set filetype=markdown.mdx
|
autocmd BufNewFile,BufRead *.tsx setfiletype typescript.jsx
|
||||||
augroup END
|
augroup END
|
||||||
|
|
||||||
" Fix for https://github.com/sheerun/vim-polyglot/issues/236#issuecomment-387984954
|
" Fix for https://github.com/sheerun/vim-polyglot/issues/236#issuecomment-387984954
|
||||||
|
Loading…
Reference in New Issue
Block a user