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:
Konfekt
2015-10-30 23:19:19 +01:00
parent 300c719b3e
commit 06cd61cf7b

View File

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