summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2019-03-04 17:52:38 +0100
committerAdam Stankiewicz <sheerun@sher.pl>2019-03-04 17:53:21 +0100
commit25ed6ff970d7e64c4ebfc52952431f8b228113d5 (patch)
tree8d8c1cccbf27959b380bba6efe797338874cc752
parent521220f389907255b6d9a87458333b468ffc7ac4 (diff)
downloadvim-polyglot-25ed6ff970d7e64c4ebfc52952431f8b228113d5.tar.gz
vim-polyglot-25ed6ff970d7e64c4ebfc52952431f8b228113d5.zip
Reintroduce mdx
-rw-r--r--config.vim3
-rw-r--r--ftdetect/polyglot.vim3
2 files changed, 6 insertions, 0 deletions
diff --git a/config.vim b/config.vim
index a141e596..733e8b40 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 cf2ef355..9b91f84a 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