cursorline hides background colors set by vim-css-color
losingkeys opened this issue · 7 comments
When I have cursorline set (:set cursorline
) and a color that vim-css-color changes the backgroung for (for instance background: orange;
), the background color set because of cursorline overrides the one set by vim-css-color. However when I search (and I have hlsearch
enabled), the yellow of the matched word(s) from the search overrides the cursorline background. Is there a way this plugin can do the same?
This is still a issue.
I wouldn't mind but if the color is #FFFFFF
(for instance) then the text color is set to black. So when you move onto that line with a dark theme the text becomes almost invisible. The indent guides plugin seems to be able to set the correct background color. Maybe that would be a place to look for a solution.
https://github.com/lilydjwg/colorizer also works with cursorline enabled and is not limited to CSS files. Unfortunately, it does not visualize named colors, e.g. "red".
Hi everyone, I ended up merging two plugins(Aristotle Pagaltzis version of vim-css-colors) and colorizer, so that I can avoid this bug but keep hsl(a) and named colors. You can grab it here
Don't forget to put 'star' on repo =)
@gorodinskiy nice! I'm going to check it out.
Thanks!
My improved color highlight plugin also does not have that problem: https://github.com/chrisbra/color_highlight
My optimised, HSL-supporting fork of this plugin now has a fix for cursorline
too → ap/vim-css-color