hotfix to disable bib folding by default#2089
hotfix to disable bib folding by default#2089lervag merged 1 commit intolervag:masterfrom yongrenjie:master
Conversation
|
But I want it conditional on |
|
OK, but what happens if someone wants folding in bib files but not tex? Then they would have to |
|
Yes, if that is to be expected, this indeed is the only option that makes sense. |
|
(I'm not using folds at all, so I have a hard time imagining all the ways that people might wish to ;)) |
|
I believe the following makes sense: call s:init_option('vimtex_fold_enabled', 0)
call s:init_option('vimtex_fold_bib_enabled', g:vimtex_fold_enabled)The main reason is that I expect most people who want folds will want them in both tex and bib. For the few who only wants tex folds or bib folds, it is still easy to adjust the settings accordingly. I'll merge and make this change immediately. |
|
Merged now. Thanks for the PR, @yongrenjie, and for the comments, @clason! |
This seems like the easiest way to let the user control tex and bib folding separately (as opposed to making it conditional on
g:vimtex_fold_enabled, for example).