From: codybuell Date: Wed, 13 Jul 2016 21:35:21 +0000 (-0400) Subject: Add option to disable setting foldtext X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/1b4eb9c49c9bb644a4c467c8f56c589007f31067?ds=sidebyside;hp=-c Add option to disable setting foldtext Prevents foldtext from being overwritten when running with pythonic folding style. Can be set with let g:vim_markdown_override_foldtext=0. --- 1b4eb9c49c9bb644a4c467c8f56c589007f31067 diff --git a/after/ftplugin/markdown.vim b/after/ftplugin/markdown.vim index 6265db3..cdf0a26 100644 --- a/after/ftplugin/markdown.vim +++ b/after/ftplugin/markdown.vim @@ -150,7 +150,7 @@ let s:vim_markdown_folding_level = get(g:, "vim_markdown_folding_level", 1) if !get(g:, "vim_markdown_folding_disabled", 0) setlocal foldexpr=Foldexpr_markdown(v:lnum) setlocal foldmethod=expr - if get(g:, "vim_markdown_folding_style_pythonic", 0) + if get(g:, "vim_markdown_folding_style_pythonic", 0) && get(g:, "vim_markdown_override_foldtext", 1) setlocal foldtext=Foldtext_markdown() endif endif