* Add option vimtex_fold_section_character for custom fold characters * Add changes from codereview * Rename fold-levelmarker variable, thanks @lervag for the review
This commit is contained in:
parent
cf75fd5260
commit
b40c4103ac
@ -8,7 +8,7 @@ function! vimtex#fold#init_options() " {{{1
|
||||
call vimtex#util#set_default('g:vimtex_fold_enabled', 0)
|
||||
call vimtex#util#set_default('g:vimtex_fold_manual', 0)
|
||||
call vimtex#util#set_default('g:vimtex_fold_comments', 0)
|
||||
call vimtex#util#set_default('g:vimtex_fold_section_character', '*')
|
||||
call vimtex#util#set_default('g:vimtex_fold_levelmarker', '*')
|
||||
call vimtex#util#set_default('g:vimtex_fold_preamble', 1)
|
||||
call vimtex#util#set_default('g:vimtex_fold_envs', 1)
|
||||
call vimtex#util#set_default('g:vimtex_fold_parts',
|
||||
@ -237,7 +237,7 @@ function! vimtex#fold#text() " {{{1
|
||||
let line = getline(v:foldstart)
|
||||
|
||||
let level = v:foldlevel > 1
|
||||
\ ? repeat('-', v:foldlevel-2) . g:vimtex_fold_section_character
|
||||
\ ? repeat('-', v:foldlevel-2) . g:vimtex_fold_levelmarker
|
||||
\ : ''
|
||||
let title = 'Not defined'
|
||||
let nt = 73
|
||||
|
@ -427,7 +427,7 @@ Options~
|
||||
|
||||
Default value: 0
|
||||
|
||||
*g:vimtex_fold_section_character*
|
||||
*g:vimtex_fold_levelmarker*
|
||||
|
||||
Use custom section symbol for folding.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user