rhysd / neovim-component

<neovim-editor> WebComponent to embed Neovim to your app with great ease
https://github.com/rhysd/NyaoVim
MIT License
193 stars 18 forks source link

Cursor doesn't respect `highlight Cursor` setting #31

Open haifengkao opened 8 years ago

haifengkao commented 8 years ago

see http://vim.wikia.com/wiki/Configuring_the_cursor

NeovimCursor should store the char under the cursor to redraw it correctly. It can avoid the ugly anti-aliasing issue as well.

rhysd commented 8 years ago

NeovimCursor should store the char under the cursor to redraw it correctly. It can avoid the ugly anti-aliasing issue as well.

Yes, as you said, it's the best that NeovimCursor contains the character under the cursor. It was discussed once in NyaoVim issue.

https://github.com/rhysd/NyaoVim/issues/16

However, I could not find the way to obtain the character under the cursor efficiently (Note: RPC is slow). So currently neovim-component stupidly inverts the color under the cursor.