mirror of
https://github.com/tbabej/taskwiki.git
synced 2025-08-18 21:33:07 +02:00
add toggle to disable custom folding for vimwiki files
This commit is contained in:
parent
146d0891a6
commit
5e125960c9
1 changed files with 3 additions and 1 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue