From 06cd61cf7b67e183f84e8a04a89937eb960e9cdb Mon Sep 17 00:00:00 2001 From: Konfekt Date: Fri, 30 Oct 2015 23:19:19 +0100 Subject: [PATCH 1/2] 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 From 435da76cb49f6634a7bc1617d712b030737da3a0 Mon Sep 17 00:00:00 2001 From: Konfekt Date: Fri, 30 Oct 2015 23:26:10 +0100 Subject: [PATCH 2/2] document conceal-level and -cursor switches --- doc/indentLine.txt | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/doc/indentLine.txt b/doc/indentLine.txt index 0a5ee5e..147b2e5 100644 --- a/doc/indentLine.txt +++ b/doc/indentLine.txt @@ -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.