mirror of
https://github.com/Yggdroot/indentLine.git
synced 2025-12-08 04:54:45 +08:00
Merge pull request #137 from Konfekt/master
cleaner interface for custom conceal-level and -cursor
This commit is contained in:
@@ -68,10 +68,8 @@ endfunction
|
||||
function! s:SetConcealOption()
|
||||
if ! exists("b:indentLine_ConcealOptionSet")
|
||||
let b:indentLine_ConcealOptionSet = 1
|
||||
if ! exists("g:indentLine_noConcealCursor")
|
||||
setlocal concealcursor=inc
|
||||
endif
|
||||
setlocal conceallevel=2
|
||||
let &l:concealcursor = exists("g:indentLine_concealcursor") ? g:indentLine_concealcursor : "inc"
|
||||
let &l:conceallevel = exists("g:indentLine_conceallevel") ? g:indentLine_conceallevel : "2"
|
||||
endif
|
||||
endfunction
|
||||
|
||||
|
||||
@@ -105,10 +105,17 @@ g:indentLine_faster *g:indentLine_faster*
|
||||
1, default value is 0. But better performance may bring little
|
||||
issue with it.
|
||||
|
||||
g:indentLine_noConcealCursor *g:indentLine_noConcealCursor*
|
||||
g:indentLine_concealcursor *g:indentLine_concealcursor*
|
||||
This variable toggles cursor lines behavior. If variable
|
||||
exists, then cursorline will be above conceal chars.
|
||||
Default value is not set.
|
||||
exists and is empty, that is, set to '', then the indentlines
|
||||
will not show up in the cursorline.
|
||||
See *concealcursor*.
|
||||
Default value is 'inc'.
|
||||
|
||||
g:indentLine_concealleavel *g:indentLine_conceallevel*
|
||||
This variable toggles the concealing behavior.
|
||||
See *concealleavel*.
|
||||
Default value is '2'.
|
||||
|
||||
g:indentLine_leadingSpaceChar *g:indentLine_leadingSpaceChar*
|
||||
Specify a character to show for leading spaces.
|
||||
|
||||
Reference in New Issue
Block a user