Neovide: Add options to disable cursor animation in insert or command line

Created on 30 Jan 2020  路  6Comments  路  Source: Kethku/neovide

I absolutely love this feature. But i wish i could disable it in insert mode. because it feels like there is an input lag when i type in insert mode. Although there isnt one.

enhancement

Most helpful comment

Good call. I will look into it. This may get me to actually build a setting system...

All 6 comments

Good call. I will look into it. This may get me to actually build a setting system...

Thanks @Kethku

Adding to this the requirement that it should also have an option to disable animations to and from the commandline. Too many setups will animate to the line count or similar which is super distracting. It would be nice to instead have the cursor jump there, but remember where it was so that when it jumps back if it is in a different position, it will animate to the new position from the previous location instead of the command line or just jumping to the new place.

This is super important for keybindings which might incidentally write to the commandline.

+1. I specifically find it distracting that it jumps to the bottom row whenever I enter insert mode, so the cursor is no longer resting at it's original location.

This may get me to actually build a setting system...

fwiw, Nvim has dictwatcheradd() which was intended for this purpose, i.e. so plugins can listen to variables for changes, so they work like Vim "options". Example:

silent! call dictwatcherdel(g:, 'foo_*', 'OnDictChanged')
function! OnDictChanged(d,k,z)
  echomsg string(a:k) string(a:z)
endfunction
call dictwatcheradd(g:, 'foo_*', 'OnDictChanged')
let g:foo_setting = 'baz'

Option support implemented like @justinmk suggested is now done. Closing this in favor of https://github.com/Kethku/neovide/issues/117

Was this page helpful?
0 / 5 - 0 ratings

Related issues

habamax picture habamax  路  67Comments

pranphy picture pranphy  路  36Comments

ssxwcz picture ssxwcz  路  50Comments

mdudzinski picture mdudzinski  路  60Comments

Kethku picture Kethku  路  87Comments