summaryrefslogtreecommitdiffstats
path: root/ftplugin/vlang.vim
diff options
context:
space:
mode:
Diffstat (limited to 'ftplugin/vlang.vim')
-rw-r--r--ftplugin/vlang.vim9
1 files changed, 1 insertions, 8 deletions
diff --git a/ftplugin/vlang.vim b/ftplugin/vlang.vim
index 0a04d5ea..a3d3ceac 100644
--- a/ftplugin/vlang.vim
+++ b/ftplugin/vlang.vim
@@ -1,13 +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/vlang.vim', 1, 1), Filter)
-if len(files) > 0
- exec 'source ' . files[0]
+if !polyglot#util#IsEnabled('v', expand('<sfile>:p'))
finish
endif
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'v') == -1
setlocal commentstring=//\ %s
setlocal makeprg=v\ %
-
-endif