From b4cb58661ebf82e117d0c25673e2e59cb18044d2 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Mon, 4 Mar 2019 11:46:48 +0100 Subject: [PATCH] Add tsx support, fixes #330 --- config.vim | 4 ++-- ftdetect/polyglot.vim | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/config.vim b/config.vim index 2b36a56..a141e59 100644 --- a/config.vim +++ b/config.vim @@ -72,8 +72,8 @@ augroup filetypedetect "jinja autocmd BufNewFile,BufRead *.jinja2,*.j2,*.jinja,*.nunjucks,*.nunjs,*.njk set ft=jinja - "mdx - autocmd BufNewFile,BufRead *.mdx set filetype=markdown.mdx + "tsx + autocmd BufNewFile,BufRead *.tsx setfiletype typescript.jsx augroup END " Fix for https://github.com/sheerun/vim-polyglot/issues/236#issuecomment-387984954 diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim index e78ac9d..894bcbc 100644 --- a/ftdetect/polyglot.vim +++ b/ftdetect/polyglot.vim @@ -72,8 +72,8 @@ augroup filetypedetect "jinja autocmd BufNewFile,BufRead *.jinja2,*.j2,*.jinja,*.nunjucks,*.nunjs,*.njk set ft=jinja - "mdx - autocmd BufNewFile,BufRead *.mdx set filetype=markdown.mdx + "tsx + autocmd BufNewFile,BufRead *.tsx setfiletype typescript.jsx augroup END " Fix for https://github.com/sheerun/vim-polyglot/issues/236#issuecomment-387984954