mirror of
https://github.com/jdhao/nvim-config.git
synced 2025-06-08 14:14:33 +02:00
update fold text style
This commit is contained in:
parent
191abbcf88
commit
4537bab436
@ -72,7 +72,7 @@ function! utils#MyFoldText() abort
|
||||
let l:fold_line_num = v:foldend - v:foldstart
|
||||
let l:fold_text = substitute(l:line, '^"{\+', '', 'g')
|
||||
let l:fill_char_num = &textwidth - len(l:fold_text) - len(l:fold_line_num) - 10
|
||||
return printf('+%s%s%s (%s L)', repeat('-', 4), l:fold_text, repeat('.', l:fill_char_num), l:fold_line_num)
|
||||
return printf('+%s%s %s (%s L)', repeat('-', 4), l:fold_text, repeat('-', l:fill_char_num), l:fold_line_num)
|
||||
endfunction
|
||||
|
||||
" Toggle cursor column
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user