gonvim icon indicating copy to clipboard operation
gonvim copied to clipboard

How to change the cursor's color

Open luzhlon opened this issue 7 years ago • 4 comments

The default color of gonvim's cursor is white and transparent, it's very beautiful in the case of dark colorscheme.

dark

But it's Illegible in the case of light colorscheme.

light

I prefer to use the light colorscheme, can i change the cursor's color by any way?

luzhlon avatar Jan 20 '18 02:01 luzhlon

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

akiyosi avatar Jan 25 '18 11:01 akiyosi

it could be judged by the 'background' option.

luzhlon avatar Jan 25 '18 15:01 luzhlon

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.

trv6 avatar Feb 26 '18 06:02 trv6

In my fork branch I modified the cursor color to judge from the color scheme. try it.

https://github.com/akiyosi/gonvim

akiyosi avatar May 04 '18 05:05 akiyosi