summaryrefslogtreecommitdiffstats
path: root/ftdetect
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2019-03-04 11:33:35 +0100
committerAdam Stankiewicz <sheerun@sher.pl>2019-03-04 11:33:35 +0100
commitb69fbad1af47d632fd5f6d289afb8429c5e8618d (patch)
treec9df735673a9a9327c7524cd57d65c64c1bdad09 /ftdetect
parentfc272a0aa272b0cd8f292baf64b9ee34a1f48b12 (diff)
downloadvim-polyglot-b69fbad1af47d632fd5f6d289afb8429c5e8618d.tar.gz
vim-polyglot-b69fbad1af47d632fd5f6d289afb8429c5e8618d.zip
Add mdx support, closes #342
Diffstat (limited to 'ftdetect')
-rw-r--r--ftdetect/polyglot.vim3
1 files changed, 3 insertions, 0 deletions
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