From 06e628ba51088bf424a4277894fab900af971ee9 Mon Sep 17 00:00:00 2001 From: Jamie Liu Date: Thu, 7 Nov 2013 20:16:39 -0800 Subject: [PATCH] add the g:indentLine_setColors option When g:indentLine_setColors is 1, indentLine will set the Conceal highlight group's colors using the g:indentLine_color_{term,gui} options if provided, or choose default colors automatically if not (this is the existing behavior.) When g:indentLine_setColors is 0, indentLine will not override the existing colors selected for the Conceal highlight group. Defaults to 1. --- after/plugin/indentLine.vim | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/after/plugin/indentLine.vim b/after/plugin/indentLine.vim index 890c514..c4efa09 100644 --- a/after/plugin/indentLine.vim +++ b/after/plugin/indentLine.vim @@ -60,6 +60,10 @@ if !exists("g:indentLine_faster") let g:indentLine_faster = 0 endif +if !exists("g:indentLine_setColors") + let g:indentLine_setColors = 1 +endif + if !exists("g:indentLine_noConcealCursor") set concealcursor=inc endif @@ -68,6 +72,10 @@ set conceallevel=1 "{{{1 function! InitColor() function! InitColor() + if !g:indentLine_setColors + return + endif + if !exists("g:indentLine_color_term") if &bg ==? "light" let term_color = 249