mirror of
https://github.com/Yggdroot/indentLine.git
synced 2025-12-07 20:54:26 +08:00
allow user to set conceallevel and -cursor
Fixes many issues with unwanted default concealing that is hard to disable by autocmd as that by IndenLine is triggered late
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user