The cursor color in neovim/vim is set by ghostty rather than the theme #6939
-
This is running with And in iTerm2: My ghostty configuration:
This means that we end up with low contrast while editing files: I think that in iTerm2 my cursor color has been always defined by my neovim colorscheme, and ghostty is instead rendering a cursor with the same color regardless of colorscheme. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 4 replies
-
And the cursor is orange for ghostty in the shell and black for iterm2 in the shell? if you are running neovim with no plugins (colorschemes) I would think this is 100% the expected behavior as neovim is not overriding your cursor color https://github.com/mbadolato/iTerm2-Color-Schemes/blob/master/ghostty/Builtin%20Tango%20Light#L19 https://github.com/neovim/neovim/blob/f4ee0ab2f1a15fe3bb88122fa162620e4af74b1d/runtime/doc/options.txt#L3037 |
Beta Was this translation helpful? Give feedback.
-
I'm not sure if Neovim does do this by default, I've had this behaviour in pretty much every terminal emulator. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
The other commenters, I think, are right - the vim colorscheme doesn't actually control the cursor color or color flipping, but the defaults for ghostty were just not working for me: after adding
I have a usable setup, with contrast for the cursor! |
Beta Was this translation helpful? Give feedback.
-
That worked for me as well. I just looked at the colors of my theme,
I changed these colors to what alacritty has, and now I have a readable block cursor. But the iTerm2-Color-Schemes repo (which ghostty uses) shows these values:
So it looks like a bug on the |
Beta Was this translation helpful? Give feedback.
That worked for me as well. I just looked at the colors of my theme,
catppuccin-mocha
for alacritty and it says:I changed these colors to what alacritty has, and now I have a readable block cursor.
But the iTerm2-Color-Schemes repo (which ghostty uses) shows these values:
So it looks like a bug on the
iTerm2-Color-Schemes
repo to me.