* 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:
Matthias Günther 2016-06-13 18:45:18 +02:00 committed by Karl Yngve Lervåg
parent cf75fd5260
commit b40c4103ac
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -427,7 +427,7 @@ Options~
Default value: 0
*g:vimtex_fold_section_character*
*g:vimtex_fold_levelmarker*
Use custom section symbol for folding.