From 06cd61cf7b67e183f84e8a04a89937eb960e9cdb Mon Sep 17 00:00:00 2001 From: Konfekt Date: Fri, 30 Oct 2015 23:19:19 +0100 Subject: [PATCH] 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 --- after/plugin/indentLine.vim | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/after/plugin/indentLine.vim b/after/plugin/indentLine.vim index 808e251..aa88567 100644 --- a/after/plugin/indentLine.vim +++ b/after/plugin/indentLine.vim @@ -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