diff options
Diffstat (limited to 'indent/nginx.vim')
-rw-r--r-- | indent/nginx.vim | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/indent/nginx.vim b/indent/nginx.vim index c797da45..cd0af59f 100644 --- a/indent/nginx.vim +++ b/indent/nginx.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/nginx.vim', 1, 1), Filter) -if len(files) > 0 - exec 'source ' . files[0] +if !polyglot#util#IsEnabled('nginx', expand('<sfile>:p')) finish endif -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'nginx') == -1 if exists("b:did_indent") finish @@ -18,5 +13,3 @@ setlocal indentexpr= setlocal cindent " Just make sure that the comments are not reset as defs would be. setlocal cinkeys-=0# - -endif |