rogual / neovim-dot-app

Mac OS X GUI for Neovim
1.13k stars 62 forks source link

Changeable cursor shape & color #191

Open PixelPirate opened 8 years ago

PixelPirate commented 8 years ago

It seems that the cursor shape and color can not be changed (?)

I tried

let &t_SI .= "\<Esc>[2 q"  " solid block in insert mode
let &t_EI .= "\<Esc>[2 q"  " solid block in normal mode

But it didn't change anything, I also wasn't able to change the color with something like

let &t_SI .= "\<Esc>]12;orange\x7"

GUI options also seem to do nothing:

highlight Cursor guifg=white guibg=black
highlight iCursor guifg=white guibg=steelblue
set guicursor=n-v-c:block-Cursor
set guicursor+=i:ver100-iCursor
set guicursor+=n-v-c:blinkon0
set guicursor+=i:blinkwait10

Strangely, the cursor color did change between black and grey when changing background between light and dark respectively. So I guess different cursor colors are implemented but not configurable?

rogual commented 8 years ago

AFAIK Neovim has removed support for all gui* options. Also I think the t_ stuff is only expected to work in terminals.

The best way IMO to implement this would be to have a MacSetCursorShape VimL function in nvimrc.