diff options
Diffstat (limited to 'autoload/RstFold.vim')
-rw-r--r-- | autoload/RstFold.vim | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/autoload/RstFold.vim b/autoload/RstFold.vim index 926bc1b9..f340565b 100644 --- a/autoload/RstFold.vim +++ b/autoload/RstFold.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, 'autoload/RstFold.vim', 1, 1), Filter) -if len(files) > 0 - exec 'source ' . files[0] +if !polyglot#util#IsEnabled('rst', expand('<sfile>:p')) finish endif -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rst') == -1 " Author: Antony Lee <anntzer.lee@gmail.com> " Description: Helper functions for reStructuredText syntax folding @@ -69,5 +64,3 @@ function RstFold#GetRstFoldText() let text = thisline =~ '^\([=`:.''"~^_*+#-]\)\1\+$' ? getline(v:foldstart + 1) : thisline return indent . text endfunction - -endif |