Closed nhooyr closed 7 years ago
I'm wary of adding configuration options to a plugin like this, but I can see why you want this behaviour.
My first thought on seeing this patch was: "doesn't Vim already have a relevant option built-in?" Digging around in the docs, it looks as though I was thinking of the 'foldlevelstart' option. Unfortunately, it's not possible to set that option locally for a buffer, it can only be configured globally, so I don't know if that's going to help.
@nelstrom I tried that already. Problem is, if I close all folds, it still closes the first header fold, which is annoying. Buts its alright, I'll just use my fork, its a very small change anyway.
I find it annoying that with nested folding, the first level header is folded. I've added an option for my preferred behaviour.