summaryrefslogtreecommitdiffstats
path: root/indent/ch.vim
diff options
context:
space:
mode:
Diffstat (limited to 'indent/ch.vim')
-rw-r--r--indent/ch.vim9
1 files changed, 1 insertions, 8 deletions
diff --git a/indent/ch.vim b/indent/ch.vim
index 0b606769..bcee5c3c 100644
--- a/indent/ch.vim
+++ b/indent/ch.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, 'indent/ch.vim', 1, 1), Filter)
-if len(files) > 0
- exec 'source ' . files[0]
+if !polyglot#util#IsEnabled('ch', expand('<sfile>:p'))
finish
endif
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ch') == -1
" Vim indent file
" Language: Ch
@@ -25,5 +20,3 @@ let b:did_indent = 1
" Ch indenting is built-in, thus this is very simple
setlocal cindent
-
-endif