Use upstreadm mdx ftdetect

This commit is contained in:
Adam Stankiewicz 2019-03-04 17:55:31 +01:00
parent 25ed6ff970
commit 6f7257ade2
3 changed files with 14 additions and 7 deletions

2
build
View File

@ -63,7 +63,7 @@ extract() {
output "${subdirs##, })"$'\n' output "${subdirs##, })"$'\n'
if (echo "julia coffee-script elixir fish git plantuml scala swift jinja mdx" | grep -qF "$name"); then if (echo "julia coffee-script elixir fish git plantuml scala swift jinja" | grep -qF "$name"); then
echo "Skipping ftdetect installation of $name" >&2 echo "Skipping ftdetect installation of $name" >&2
continue continue
fi fi

View File

@ -72,9 +72,6 @@ augroup filetypedetect
"jinja "jinja
autocmd BufNewFile,BufRead *.jinja2,*.j2,*.jinja,*.nunjucks,*.nunjs,*.njk set ft=jinja autocmd BufNewFile,BufRead *.jinja2,*.j2,*.jinja,*.nunjucks,*.nunjs,*.njk set ft=jinja
"mdx
autocmd BufNewFile,BufRead *.mdx set filetype=markdown.mdx
"tsx "tsx
autocmd BufNewFile,BufRead *.tsx setfiletype typescript.jsx autocmd BufNewFile,BufRead *.tsx setfiletype typescript.jsx
augroup END augroup END

View File

@ -72,9 +72,6 @@ augroup filetypedetect
"jinja "jinja
autocmd BufNewFile,BufRead *.jinja2,*.j2,*.jinja,*.nunjucks,*.nunjs,*.njk set ft=jinja autocmd BufNewFile,BufRead *.jinja2,*.j2,*.jinja,*.nunjucks,*.nunjs,*.njk set ft=jinja
"mdx
autocmd BufNewFile,BufRead *.mdx set filetype=markdown.mdx
"tsx "tsx
autocmd BufNewFile,BufRead *.tsx setfiletype typescript.jsx autocmd BufNewFile,BufRead *.tsx setfiletype typescript.jsx
augroup END augroup END
@ -714,6 +711,19 @@ au BufRead,BufNewFile *.{md,mdown,mkd,mkdn,markdown,mdwn}.{des3,des,bf,bfa,aes,i
augroup end augroup end
endif endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'mdx') == -1
augroup filetypedetect
" mdx, from mdx.vim in jxnblk/vim-mdx-js
" Vim ftdetect file
"
" Language: MDX
" Maintainer: Brent Jackson <jxnblk@gmail.com>
"
autocmd BufNewFile,BufRead *.mdx set filetype=markdown.mdx
augroup end
endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'meson') == -1 if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'meson') == -1
augroup filetypedetect augroup filetypedetect
" meson, from meson.vim in mesonbuild/meson:_ALL:/data/syntax-highlighting/vim/ " meson, from meson.vim in mesonbuild/meson:_ALL:/data/syntax-highlighting/vim/