-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow opting out of folding with global variable #87
base: master
Are you sure you want to change the base?
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 = 0
to your .vimrc (or similar) to opt out of folding by default on .hs file load.