Closed TD-Sky closed 1 year ago
The shape and color of the cursor in the "main area" is controlled by your terminal emulator.
Here is what I see in WezTerm on Windows 11 using the configuration you shared:
You are right! I am using Gruvbox color scheme in Wezterm.
When the Gruvbox is light in Wezterm, the cursor in dark background is hard to see in Neovim; when the Gruvbox is dark in Wezterm, the cursor in light background is hard to see in Neovim.
It seems like I cannot use Gruvbox in Wezterm because I use both modes in Neovim every day.
I highly recommend this article if you want to synchronize dark/light mode between your terminal emulator and Vim: https://arslan.io/2021/02/15/automatic-dark-mode-for-terminal-applications/
(Neo)Vim being a terminal application, the cursor color will always depend on the terminal emulator. This is not specific to WezTerm, and is true regardless of the color scheme you use.
You can also look into :h 'guicursor'
for customizing the cursor appearance from within (Neo)Vim.
Thank you very much!
I found that setting config force_reverse_video_cursor = true
can make the cursor always clear.
I have done the following steps before reporting this issue:
Operating system/version
Arch Linux 6.3.1-arch1-1
Terminal emulator/version
wezterm 20230408-112425-69ae8472
$TERM environment variable
xterm-256color
Tmux version
No response
Feature matrix
Minimal vimrc that can reproduce this bug.
Use
init.lua
:Steps to reproduce this bug using minimal vimrc
foo.txt
withnvim -u init.lua
.:
).Expected behavior
The color of cursor in main area should be same as the one in command mode.
It should be obvious like in the GUI mode.
Actual behavior
The cursor in main area looks very pale and is hard to see.