diff --git a/config.vim b/config.vim index a141e59..733e8b4 100644 --- a/config.vim +++ b/config.vim @@ -72,6 +72,9 @@ 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 diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim index cf2ef35..9b91f84 100644 --- a/ftdetect/polyglot.vim +++ b/ftdetect/polyglot.vim @@ -72,6 +72,9 @@ 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