dzhou121 / gonvim

MIT License
1.79k stars 34 forks source link

How to change the cursor's color #86

Open luzhlon opened 6 years ago

luzhlon commented 6 years ago

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?

akiyosi commented 6 years ago

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

luzhlon commented 6 years ago

it could be judged by the 'background' option.

trv6 commented 6 years ago

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.

akiyosi commented 6 years ago

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

https://github.com/akiyosi/gonvim