From b69fbad1af47d632fd5f6d289afb8429c5e8618d Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Mon, 4 Mar 2019 11:33:35 +0100 Subject: Add mdx support, closes #342 --- ftdetect/polyglot.vim | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ftdetect') diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim index 3316c3b7..e78ac9dc 100644 --- a/ftdetect/polyglot.vim +++ b/ftdetect/polyglot.vim @@ -71,6 +71,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 augroup END " Fix for https://github.com/sheerun/vim-polyglot/issues/236#issuecomment-387984954 -- cgit v1.2.3