Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cursor disappearing #932

Open
NickStafford2 opened this issue Oct 7, 2024 · 5 comments
Open

Cursor disappearing #932

NickStafford2 opened this issue Oct 7, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@NickStafford2
Copy link

NickStafford2 commented Oct 7, 2024

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)

  • NVIM v0.10.1
  • Build type: Release
  • LuaJIT 2.1.1713484068
@NickStafford2 NickStafford2 added the bug Something isn't working label Oct 7, 2024
@lukas-reineke
Copy link
Owner

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
Copy link
Author

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
Copy link

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
Copy link
Owner

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants