Skip to content

Add option to disable overriding foldtext #7

Merged
merged 1 commit into from Nov 15, 2013

3 participants

@matze
matze commented Aug 31, 2013

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.

@matze matze Add option to disable overriding foldtext
Setting g:markdown_fold_override_foldtext to 0 will not set the custom foldtext
function.
1ce4176
@inkarkat

+1; I've so far used

setlocal foldtext< 

to undo this.

Unfortunately, the author seems to have gone AWOL :-(

@nelstrom
Owner

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?

@matze
matze commented Nov 15, 2013

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 ;-)

@nelstrom nelstrom merged commit 87fd42e into nelstrom:master Nov 15, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.