summaryrefslogtreecommitdiffstats
path: root/syntax/go.vim
diff options
context:
space:
mode:
Diffstat (limited to 'syntax/go.vim')
-rw-r--r--syntax/go.vim9
1 files changed, 1 insertions, 8 deletions
diff --git a/syntax/go.vim b/syntax/go.vim
index f546b91a..b28002ec 100644
--- a/syntax/go.vim
+++ b/syntax/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, 'syntax/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 2009 The Go Authors. All rights reserved.
" Use of this source code is governed by a BSD-style
@@ -452,5 +447,3 @@ syn sync minlines=500
let b:current_syntax = "go"
" vim: sw=2 ts=2 et
-
-endif