gonvim
gonvim copied to clipboard
How to change the cursor's color
The default color of gonvim's cursor is white and transparent, it's very beautiful in the case of dark colorscheme.
But it's Illegible in the case of light colorscheme.
I prefer to use the light colorscheme, can i change the cursor's color by any way?
The code related this issue is as follows, but how to judge whether a theme is dark or light...
https://github.com/dzhou121/gonvim/blob/c264bb83afbfe10c2d4991037142c169ce6519c3/editor/cursor.go#L34-L40
it could be judged by the 'background' option.
Could gonvim set the cursor color to the values defined in the user's cholorscheme? If the colorscheme uses a similar transparent white color for visual selections, it's easy to "lose" the cursor in visual mode.
In my fork branch I modified the cursor color to judge from the color scheme. try it.
https://github.com/akiyosi/gonvim