summaryrefslogtreecommitdiffstats
path: root/ftplugin/mma.vim
diff options
context:
space:
mode:
Diffstat (limited to 'ftplugin/mma.vim')
-rw-r--r--ftplugin/mma.vim9
1 files changed, 1 insertions, 8 deletions
diff --git a/ftplugin/mma.vim b/ftplugin/mma.vim
index c173a1a2..2dc9cd61 100644
--- a/ftplugin/mma.vim
+++ b/ftplugin/mma.vim
@@ -1,11 +1,6 @@
-let s:base = expand("<sfile>:h:h")
-let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
-let files = filter(globpath(&rtp, 'ftplugin/mma.vim', 1, 1), Filter)
-if len(files) > 0
- exec 'source ' . files[0]
+if !polyglot#util#IsEnabled('mathematica', expand('<sfile>:p'))
finish
endif
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'mathematica') == -1
"Vim filetype plugin
" Language: Mathematica
@@ -66,5 +61,3 @@ unlet s:cpo_save
"}
" vim: set foldmarker={,} foldlevel=0 foldmethod=marker:
-
-endif