Merge pull request #137 from Konfekt/master

cleaner interface for custom conceal-level and -cursor
This commit is contained in:
Yggdroot
2015-11-01 11:22:23 +08:00
2 changed files with 12 additions and 7 deletions

View File

@@ -68,10 +68,8 @@ endfunction
function! s:SetConcealOption() function! s:SetConcealOption()
if ! exists("b:indentLine_ConcealOptionSet") if ! exists("b:indentLine_ConcealOptionSet")
let b:indentLine_ConcealOptionSet = 1 let b:indentLine_ConcealOptionSet = 1
if ! exists("g:indentLine_noConcealCursor") let &l:concealcursor = exists("g:indentLine_concealcursor") ? g:indentLine_concealcursor : "inc"
setlocal concealcursor=inc let &l:conceallevel = exists("g:indentLine_conceallevel") ? g:indentLine_conceallevel : "2"
endif
setlocal conceallevel=2
endif endif
endfunction endfunction

View File

@@ -105,10 +105,17 @@ g:indentLine_faster *g:indentLine_faster*
1, default value is 0. But better performance may bring little 1, default value is 0. But better performance may bring little
issue with it. issue with it.
g:indentLine_noConcealCursor *g:indentLine_noConcealCursor* g:indentLine_concealcursor *g:indentLine_concealcursor*
This variable toggles cursor lines behavior. If variable This variable toggles cursor lines behavior. If variable
exists, then cursorline will be above conceal chars. exists and is empty, that is, set to '', then the indentlines
Default value is not set. 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* g:indentLine_leadingSpaceChar *g:indentLine_leadingSpaceChar*
Specify a character to show for leading spaces. Specify a character to show for leading spaces.