summaryrefslogtreecommitdiffstats
path: root/compiler/nim.vim
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/nim.vim')
-rw-r--r--compiler/nim.vim9
1 files changed, 1 insertions, 8 deletions
diff --git a/compiler/nim.vim b/compiler/nim.vim
index 1b8c21b1..e7ed6936 100644
--- a/compiler/nim.vim
+++ b/compiler/nim.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, 'compiler/nim.vim', 1, 1), Filter)
-if len(files) > 0
- exec 'source ' . files[0]
+if !polyglot#util#IsEnabled('nim', expand('<sfile>:p'))
finish
endif
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'nim') == -1
if exists('current_compiler')
finish
@@ -32,5 +27,3 @@ unlet s:cpo_save
let g:syntastic_nim_checkers = ['nim']
-
-endif