diff --git a/README.md b/README.md index 8899090..2c6f7e2 100644 --- a/README.md +++ b/README.md @@ -119,6 +119,7 @@ let g:haskell_shqq = 0 let g:haskell_sql = 0 let g:haskell_json = 0 let g:haskell_xml = 0 +let g:haskell_fold = 0 ``` ### HSP & Heist diff --git a/ftplugin/haskell.vim b/ftplugin/haskell.vim index 7e37f39..f050bd7 100644 --- a/ftplugin/haskell.vim +++ b/ftplugin/haskell.vim @@ -2,7 +2,9 @@ call vim2hs#haskell#editing#includes() call vim2hs#haskell#editing#keywords() call vim2hs#haskell#editing#formatting() -call vim2hs#haskell#editing#folding() +if get(g:, 'haskell_fold', 1) == 1 + call vim2hs#haskell#editing#folding() +endif if executable('hlint') command! -buffer -nargs=* HLint call vim2hs#with_compiler('hlint', )