summaryrefslogtreecommitdiffstats
path: root/ftplugin/moon.vim
diff options
context:
space:
mode:
Diffstat (limited to 'ftplugin/moon.vim')
-rw-r--r--ftplugin/moon.vim9
1 files changed, 1 insertions, 8 deletions
diff --git a/ftplugin/moon.vim b/ftplugin/moon.vim
index 997facd7..a4c0140f 100644
--- a/ftplugin/moon.vim
+++ b/ftplugin/moon.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/moon.vim', 1, 1), Filter)
-if len(files) > 0
- exec 'source ' . files[0]
+if !polyglot#util#IsEnabled('moonscript', expand('<sfile>:p'))
finish
endif
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'moonscript') == -1
" Language: MoonScript
" Maintainer: leafo <leafot@gmail.com>
@@ -23,5 +18,3 @@ setlocal comments=:--
setlocal commentstring=--\ %s
let b:undo_ftplugin = "setlocal commentstring< comments< formatoptions<"
-
-endif