summaryrefslogtreecommitdiffstats
path: root/indent/pug.vim
diff options
context:
space:
mode:
Diffstat (limited to 'indent/pug.vim')
-rw-r--r--indent/pug.vim9
1 files changed, 1 insertions, 8 deletions
diff --git a/indent/pug.vim b/indent/pug.vim
index d0aadb62..20703d8c 100644
--- a/indent/pug.vim
+++ b/indent/pug.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/pug.vim', 1, 1), Filter)
-if len(files) > 0
- exec 'source ' . files[0]
+if !polyglot#util#IsEnabled('pug', expand('<sfile>:p'))
finish
endif
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'pug') == -1
" Vim indent file
" Language: Pug
@@ -77,5 +72,3 @@ function! GetPugIndent()
endfunction
" vim:set sw=2:
-
-endif