add toggle to disable custom folding for vimwiki files

This commit is contained in:
Jasha 2021-09-20 17:36:46 -05:00 committed by Tomas Babej
parent 146d0891a6
commit 5e125960c9

View file

@ -47,7 +47,9 @@ augroup taskwiki
" Reset cache when switching buffers
execute "autocmd BufEnter <buffer> :" . g:taskwiki_py . "cache.load_current().reset()"
" Update window-local fold options
autocmd BufWinEnter <buffer> call taskwiki#FoldInit()
if !exists('g:taskwiki_dont_fold')
autocmd BufWinEnter <buffer> call taskwiki#FoldInit()
endif
" Refresh on load (if possible, after loadview to preserve folds)
if has('patch-8.1.1113') || has('nvim-0.4.0')