Yggdroot / indentLine

A vim plugin to display the indention levels with thin vertical lines
MIT License
4.15k stars 229 forks source link

Indent line color overriden by the color theme #57

Open RobertAudi opened 11 years ago

RobertAudi commented 11 years ago

I use the base16-vim railscasts theme. It defines a color for the Conceal group, which overrides the highlighting that indentLine defines. The only way I found to fix that problem is to fork the theme and hardcode the color I want in it.

Isn't there a way to prevent the theme from overriding the indent lines color?

Yggdroot commented 11 years ago

the theme can not override the indentLine color, I don't know what happened to you.

RobertAudi commented 11 years ago

Well, in my case the theme does override the color of the Conceal highlighting group, which is also used by indentLine. So I believe you are mistaken when you are stating that the theme cannot override the indentLine color. If you look at my form of the theme, I had to hardcode the default indentLine Conceal color inside of the theme.

Yggdroot commented 11 years ago

I have tried the base16-vim theme, it can not override the indentLine's color.

jayflo commented 10 years ago

I use the solarized theme and see the following behavior:

If you set g:indentLine_color_term, then indentLine will use that color when you restart vim. Once vim is loaded, if you set the Conceal color group, it will override the indentLine color. But the Conceal color group does not automatically override the indentLine color set by the global variable.

If you are having trouble with the Conceal color group, you should check that it's not being set in any files contained in an /after folder. Or, in general, if a hi Conceal ctermfg=XXX is being sourced after indentLine.

yevhen-m commented 7 years ago

I had the same issue. As I can see, indentLine chooses Conceal over g:indentLine_color_term setting if it's lazily loaded.

spaceone commented 4 years ago

I have the same problem that setting any color for the indent char has no effect. How to debug? How to fix?

HumblePresent commented 4 years ago

Similar problem for me I believe. g:indentLine_color_term has no effect on the color of the indent character

roachsinai commented 4 years ago

Finally found plugin https://github.com/sainnhe/gruvbox-material add setting for indentLine:

https://github.com/sainnhe/gruvbox-material/blob/4f98272fdbf9a53942eceb1aaeefb19e4f6b63bb/colors/gruvbox-material.vim#L574

so you have to add g:indentLine_color_gui and g:indentLine_color_term in your vimrc if you had install colorscheme plugin gruvbox-material.