summaryrefslogtreecommitdiffstats
path: root/syntax/conf.vim
diff options
context:
space:
mode:
Diffstat (limited to 'syntax/conf.vim')
-rw-r--r--syntax/conf.vim9
1 files changed, 1 insertions, 8 deletions
diff --git a/syntax/conf.vim b/syntax/conf.vim
index a8c4b050..a5e43e32 100644
--- a/syntax/conf.vim
+++ b/syntax/conf.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/conf.vim', 1, 1), Filter)
-if len(files) > 0
- exec 'source ' . files[0]
+if !polyglot#util#IsEnabled('conf', expand('<sfile>:p'))
finish
endif
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'conf') == -1
" Vim syntax file
" Language: generic configure file
@@ -33,5 +28,3 @@ hi def link confString String
let b:current_syntax = "conf"
" vim: ts=8 sw=2
-
-endif