neovim-gtk icon indicating copy to clipboard operation
neovim-gtk copied to clipboard

When changing themes, the cursor sometimes uses the wrong color

Open yorickpeterse opened this issue 2 years ago • 2 comments

When changing themes, the Cursor highlight group doesn't seem to be applied properly to the cursor, resulting in it using the wrong color. This can be seen here:

Screencast from 2022-12-28 16-14-52.webm

In addition, it seems the command prompt is also affected, and possibly other elements. The usual workaround is to do something like hi Cursor guifg=#000000 for the cursor, which seems to then reset it to the correct color.

Version information:

  • nvim-gtk: fac5de4 (1.0.1 from the AUR)
  • nvim: 0.8.1

yorickpeterse avatar Dec 28 '22 15:12 yorickpeterse

What are your highlight settings for Cursor here?

Lyude avatar Dec 28 '22 23:12 Lyude

@Lyude

For the initial theme:

:hi Cursor
Cursor         xxx guibg=#000000

For the theme I'm switching to (the dark one) in the video:

:hi Cursor
Cursor         xxx guibg=#d3cfbe

yorickpeterse avatar Dec 29 '22 01:12 yorickpeterse