From 25ed6ff970d7e64c4ebfc52952431f8b228113d5 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Mon, 4 Mar 2019 17:52:38 +0100 Subject: [PATCH] Reintroduce mdx --- config.vim | 3 +++ ftdetect/polyglot.vim | 3 +++ 2 files changed, 6 insertions(+) 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