Personally, I don't like if plugins try to know what I want to see. This change adds a g:markdown_fold_override_foldtext option to disable overriding the foldtext. Setting the variable to 0 will stop the plugin from setting the custom foldtext function.
Add option to disable overriding foldtext
Setting g:markdown_fold_override_foldtext to 0 will not set the custom foldtext
+1; I've so far used
to undo this.
Unfortunately, the author seems to have gone AWOL :-(
Sorry for my slow response. I'll try and be a better open source citizen!
I'm trying to decide whether the FoldText() function provided should be opt-out (as your pull request enables) or opt-in. Out of curiosity, what foldtext function do you prefer to use? Is the one that comes out of the box with Vim, or have you written your own folding function?
Hi Drew, for most buffer types (Markdown included) I use my own FoldText() function. I always try not to hurt sentiments of software authors, hence it's opt-out in this case ;-)