I'm using the indentLine plugin to display line indents with a continuos vertical line, and I'd like to set the color of that line to the same color of my comments.
To get the foreground color of my comments I listed all the color groups with :hi
, checked what my colorscheme had set for the guifg
of the Comments
group, and set it accordingly, i.e. I have this in my init.vim
config
let g:indentLine_color_gui='#5c6370'
which works, but if I want to change colorscheme I'd have to do this again. Is there a variable that holds the color of the comments defined by my colorscheme? What I'd like to do is
let g:indentLine_color_gui=<comment_guifg>