lukas-reineke / indent-blankline.nvim

Indent guides for Neovim
MIT License
4.19k stars 104 forks source link

Cursor disappearing #932

Open NickStafford2 opened 2 weeks ago

NickStafford2 commented 2 weeks ago

Problem

The cursor occasionally disappears behind the vertical lines. I am still trying to figure out why it occurs. I thought I would report it for the record.

I am investigating it myself and I will post a fix/explanation if I figure it out.

hiddenCursor

Steps to reproduce

A difficult bug to reproduce, but I have seen it several times. If I can replicate it again, I will add further notes.

I have no configuration settings for indent-blankline. I am using Lazy-vim with some custom plugins. I can provide details if needed. If anyone can point me in the right direction, I am happy to help write up a fix.

indent-breakline version:

`lazy-lock.json:25:4: "indent-blankline.nvim": { "branch": "master", "commit": "3af6493bf69e4a857a8b1fab36f333629d413a18" },

Expected behavior

Cursor remains visible.

Neovim version (nvim -v)

lukas-reineke commented 2 weeks ago

IBL does not do anything with the cursor. This looks like a lower level bug. Either with Neovim or your terminal.
I don't think I can help you with this, sorry.

NickStafford2 commented 2 weeks ago

Thanks. I will keep investigating deeper down. If I fix it, I could post back here in case it helps anyone else.

Disabling this plugin does fix it, but I'll keep debugging.

nacht-falter commented 2 weeks ago

I had the same issue and can confirm that disabling the plugin fixes this.

This is related to the cursor color. Here are a few ideas: Try disabling the cursorline (:set nocul) or change the cursorline color (e.g. :highlight CursorLine guibg=#1e1e1e) and see if that fixes it. You could also set a cursor color in your terminal settings, which should override the neovim setting.

Hope that helps!

lukas-reineke commented 2 weeks ago

Pretty sure it's not the cursor color in this case. You can see that the cursor is displayed correctly in gray sometimes, but not all the time.

nacht-falter commented 2 weeks ago

Yes, it's strange. But disabling the cursor line or setting a cursor color in the terminal settings does (kind of) fix it for me.