From 415261dd1f4ce4b547da922f3f2c2e56340fb0d6 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Tue, 23 Apr 2019 11:37:21 +0200 Subject: Switch mathematica provider, closes #385 --- ftdetect/polyglot.vim | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'ftdetect') diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim index 93911270..fdcab84d 100644 --- a/ftdetect/polyglot.vim +++ b/ftdetect/polyglot.vim @@ -758,6 +758,14 @@ au BufRead,BufNewFile *.{md,mdown,mkd,mkdn,markdown,mdwn}.{des3,des,bf,bfa,aes,i augroup end endif +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'mathematica') == -1 + augroup filetypedetect + " mathematica, from mma.vim in voldikss/vim-mma +autocmd BufNewFile,BufRead *.wl set filetype=mma +autocmd BufNewFile,BufRead *.wls set filetype=mma + augroup end +endif + if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'mdx') == -1 augroup filetypedetect " mdx, from mdx.vim in jxnblk/vim-mdx-js -- cgit v1.2.3