summaryrefslogtreecommitdiffstats
path: root/compiler/go.vim
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/go.vim')
-rw-r--r--compiler/go.vim9
1 files changed, 1 insertions, 8 deletions
diff --git a/compiler/go.vim b/compiler/go.vim
index 1d7b873e..fba6a94f 100644
--- a/compiler/go.vim
+++ b/compiler/go.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/go.vim', 1, 1), Filter)
-if len(files) > 0
- exec 'source ' . files[0]
+if !polyglot#util#IsEnabled('go', expand('<sfile>:p'))
finish
endif
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'go') == -1
" Copyright 2013 The Go Authors. All rights reserved.
" Use of this source code is governed by a BSD-style
@@ -55,5 +50,3 @@ let &cpo = s:cpo_save
unlet s:cpo_save
" vim: sw=2 ts=2 et
-
-endif