File tree Expand file tree Collapse file tree 2 files changed +22
-3
lines changed
src/renderer/cursor_renderer Expand file tree Collapse file tree 2 files changed +22
-3
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ static PLOT_NAMES_Y: [&CStr; 4] = [
5050pub struct CursorSettings {
5151 antialiasing : bool ,
5252 animation_length : f32 ,
53- distance_length_adjust : bool ,
53+ short_animation_length : f32 ,
5454 animate_in_insert_mode : bool ,
5555 animate_command_line : bool ,
5656 trail_size : f32 ,
@@ -72,7 +72,7 @@ impl Default for CursorSettings {
7272 CursorSettings {
7373 antialiasing : true ,
7474 animation_length : 0.150 ,
75- distance_length_adjust : true ,
75+ short_animation_length : 0.04 ,
7676 animate_in_insert_mode : true ,
7777 animate_command_line : true ,
7878 trail_size : 1.0 ,
@@ -165,7 +165,9 @@ impl Corner {
165165 {
166166 // Use a fast animation time for short jumps less than two characters, typically when
167167 // typing or holding a key in insert mode
168- settings. animation_length . min ( 0.04 )
168+ settings
169+ . animation_length
170+ . min ( settings. short_animation_length )
169171 } else {
170172 let leading = settings. animation_length * ( 1.0 - settings. trail_size ) . clamp ( 0.0 , 1.0 ) ;
171173 let trailing = settings. animation_length ;
Original file line number Diff line number Diff line change @@ -844,6 +844,23 @@ vim.g.neovide_cursor_animation_length = 0.150
844844Setting ` g:neovide_cursor_animation_length ` determines the time it takes for the cursor to complete
845845its animation in seconds. Set to ` 0 ` to disable.
846846
847+ #### Short Animation Length
848+
849+ VimScript:
850+
851+ ``` vim
852+ let g:neovide_cursor_short_animation_length = 0.04
853+ ```
854+
855+ Lua:
856+
857+ ``` lua
858+ vim .g .neovide_cursor_short_animation_length = 0.04
859+ ```
860+
861+ Setting ` g:neovide_cursor_short_animation_length ` determines the time it takes for the cursor to complete
862+ its animation in seconds for short horizontal travels of one or two characters, like when typing.
863+
847864#### Animation Trail Size
848865
849866<p align =" center " >
You can’t perform that action at this time.
0 commit comments