Open blueyed opened 12 years ago
Hi, I'm not actively making changes to gitv at the moment. If this is annoying enough that you don't mind changing it, I'll happily merge in pull requests.
I was hoping to fix this in 1.4, but it raises questions that are a bit more involved than I'd like to answer for a simple stability and bugfix release. I'm pushing this out.
Turns out we rely on the foldmethod being syntax in order to hide unrelated diffs when viewing a range of lines in file browser mode.
I have to answer the following questions:
Similar to commit 64619e4 ("Respect the user's foldlevelstart settings"), the user's foldmethod should not get overwritten to "syntax" probably.
It looks like there are two places where this gets done:
This should be made either configurable, or documented how to accomplish this using autocommands (e.g. by matching for "fugitive://" buffers).
"foldmethod=syntax" causes the diff hunks to be closed, while I would like to have them open by default instead.