parent
013f699de8
commit
13f82dbaac
@ -2321,6 +2321,8 @@ Value Description~
|
|||||||
'expr' Folding based on expression (folds sections and code blocks)
|
'expr' Folding based on expression (folds sections and code blocks)
|
||||||
'syntax' Folding based on syntax (folds sections; slower than 'expr')
|
'syntax' Folding based on syntax (folds sections; slower than 'expr')
|
||||||
'list' Folding based on expression (folds list subitems; much slower)
|
'list' Folding based on expression (folds list subitems; much slower)
|
||||||
|
'custom' Leave the folding settings as they are (e.g. set by another
|
||||||
|
plugin)
|
||||||
|
|
||||||
Default: ''
|
Default: ''
|
||||||
|
|
||||||
|
@ -167,6 +167,8 @@ function! s:setup_buffer_enter() "{{{
|
|||||||
elseif g:vimwiki_folding ==? 'syntax'
|
elseif g:vimwiki_folding ==? 'syntax'
|
||||||
setlocal fdm=syntax
|
setlocal fdm=syntax
|
||||||
setlocal foldtext=VimwikiFoldText()
|
setlocal foldtext=VimwikiFoldText()
|
||||||
|
elseif g:vimwiki_folding ==? 'custom'
|
||||||
|
" do nothing
|
||||||
else
|
else
|
||||||
setlocal fdm=manual
|
setlocal fdm=manual
|
||||||
normal! zE
|
normal! zE
|
||||||
|
Loading…
Reference in New Issue
Block a user