mickael-menu / ShadowVim

Neovim 𝘪𝘯𝘴𝘪𝘥𝘦 Xcode, for real.
GNU General Public License v3.0
339 stars 2 forks source link

Cursor is not visible against dark backgrounds #66

Closed jonmindtrip closed 5 months ago

jonmindtrip commented 5 months ago

Check if applicable

Describe the bug

When shadowvim is enabled at the same time as a dark theme, the cursor is very difficult to see. I've tried changing the cursor style and color in Xcode > Settings > Themes, and also tried modifying the cursor appearance using "set guicursor" commands in init.vim, neither had any effect on the cursor appearance in Xcode.

How to reproduce?

Xcode > Settings > Themes, select a dark theme. Note the cursor appearance is identical to when using a light theme. Solarized Dark in particular is almost exactly the same color as the cursor making it almost impossible to find the cursor in normal mode (see attachment). Insert mode the cursor is much brighter. Screenshot 2024-05-16 at 11 39 06 AM

Neovim configuration

n/a

Environment

ShadowVim 0.2.1 (4)

$ sw_vers -productVersion
14.4

$ uname -m
arm64

$ whereis nvim
nvim: /opt/homebrew/bin/nvim /opt/homebrew/share/man/man1/nvim.1

$ nvim --version
NVIM v0.10.0
Build type: Release
LuaJIT 2.1.1713773202
Run "nvim -V1 -v" for more info

$ xcodebuild -version
exit status: 1

$ defaults read -app Xcode KeyBindingsMode
Default

$ defaults read -app Xcode DVTTextAutoCloseBlockComment
exit status: 1

$ defaults read -app Xcode DVTTextAutoInsertCloseBrace
exit status: 1

$ defaults read -app Xcode DVTTextEditorTrimTrailingWhitespace
exit status: 1

$ defaults read -app Xcode DVTTextEnableTypeOverCompletions
exit status: 1

$ defaults read -app Xcode DVTTextIndentCaseInC
exit status: 1

$ defaults read -app Xcode DVTTextUsesSyntaxAwareIndenting
exit status: 1
mickael-menu commented 5 months ago

You need to change the text selection color in Xcode's color scheme.

jonmindtrip commented 5 months ago

thanks - super helpful! Any way to stop empty lines from using the selection color across the full editor? (see attached)

Screenshot 2024-05-16 at 12 14 05 PM

mickael-menu commented 5 months ago

Unfortunately not, it could show a simple insert cursor but I found it more confusing in practice.