summaryrefslogtreecommitdiffstats
path: root/autoload/nim.vim
diff options
context:
space:
mode:
Diffstat (limited to 'autoload/nim.vim')
-rw-r--r--autoload/nim.vim9
1 files changed, 1 insertions, 8 deletions
diff --git a/autoload/nim.vim b/autoload/nim.vim
index fdf990fc..7bdfa867 100644
--- a/autoload/nim.vim
+++ b/autoload/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, 'autoload/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
let g:nim_log = []
let s:plugin_path = escape(expand('<sfile>:p:h'), '\')
@@ -245,5 +240,3 @@ if exists('g:SyntasticRegistry')
\ 'filetype': 'nim',
\ 'name': 'nim'})
endif
-
-endif