lukas-reineke / indent-blankline.nvim

Indent guides for Neovim
MIT License
3.98k stars 99 forks source link

Hard to see cursor when hovering over indented space #890

Closed EdmundsEcho closed 1 month ago

EdmundsEcho commented 1 month ago

Problem

This is a great plugin that makes a big difference to my quickly seeing related blocks of code.

My apologies for re-raising this issue that was closed a while ago. However, I wonder if there is a way to include a function or hi group that we might work with to set the color of the cursor when we are in the blankline space in the buffer. I suspect that with what you know building this plugin there is a way to do it.

I could set my cursor color to whatever fixed value. However, I like how it change color using the fg of whatever is under it.... until we hit blankline :)

Finally, it took me about 15 min to track down which plugin was causing the issue. So at minimum, including something in the docs may be of use.

Steps to reproduce

Cursor over indented space changes the cursor to fg color that is appropriate for indent line glyphs, but not tracking where the mouse is.

Expected behavior

Have a configuration setting that changes the brightness in relation to the indent line fg, or set a fixed value, or publish a hi group we can use for the cursor when we are in the indentline space.

Neovim version (nvim -v)

0.10

lukas-reineke commented 1 month ago

It's not possible, you can either let the terminal handle setting the color based on foreground and background, or use one color set from Neovim.