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.
This commit is contained in:
Jamie Liu
2013-11-07 20:16:39 -08:00
parent e5acdf9bcd
commit 06e628ba51

View File

@@ -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! <SID>InitColor()
function! <SID>InitColor()
if !g:indentLine_setColors
return
endif
if !exists("g:indentLine_color_term")
if &bg ==? "light"
let term_color = 249