Allow opting out of folding with global variable#87
Allow opting out of folding with global variable#87gfixler wants to merge 1 commit intodag:masterfrom
Conversation
vim2hs folds code by default. This change preserves that default, but allows adding `g:haskell_fold = 0` to your .vimrc (or similar) to opt out of folding by default on .hs file load.
|
Please merge this, I really want this function. I've been doing |
|
👍 |
|
I would love for this to be merged as well. I ended up forking and making a similar change myself before finding this issue. |
|
This would be great to merge, since folding as is conflicts with neocomplete. |
|
Is this necessary, given all the standard Vim ways to do this outlined in #102? If you really think it is necessary, you should probably do call vim2hs#letdefault('g:haskell_fold', 1)in the source file first and then just use |
|
I set |
|
When I said source file, I meant the vim2hs source file this PR affects. Not your every Haskell file. Don't miss the caveat with the final line in #102; that one in particular might not work. |
|
gotcha, thanks. Well, I can experiment with the options in #102 |
vim2hs folds code by default. This change preserves that default, but allows adding
g:haskell_fold = 0to your .vimrc (or similar) to opt out of folding by default on .hs file load.