summaryrefslogtreecommitdiffstats
path: root/indent/plantuml.vim
diff options
context:
space:
mode:
Diffstat (limited to 'indent/plantuml.vim')
-rw-r--r--indent/plantuml.vim9
1 files changed, 1 insertions, 8 deletions
diff --git a/indent/plantuml.vim b/indent/plantuml.vim
index c0f3065b..1620a7c6 100644
--- a/indent/plantuml.vim
+++ b/indent/plantuml.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/plantuml.vim', 1, 1), Filter)
-if len(files) > 0
- exec 'source ' . files[0]
+if !polyglot#util#IsEnabled('plantuml', expand('<sfile>:p'))
finish
endif
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'plantuml') == -1
scriptencoding utf-8
" Vim indent file
@@ -92,5 +87,3 @@ function! s:getIncIndent() abort
\ '^\s*skinparam\>.*{\s*$\|' .
\ s:typeKeywordIncPattern()
endfunction
-
-endif