Skip to content

scroll

Controls how Zonvie eases grid scrolls. Scrolls are eased per grid (on the main window and external windows) with a spring animation; this section decides what happens to scrolls larger than one wheel event.

[scroll]
large_jump_behavior = "snap" # "snap" or "partial"
Key Description
large_jump_behavior How a scroll larger than one wheel event is shown: "snap" lands it at once, "partial" eases part of it and lands the rest at once (default "snap"). Unknown values are ignored

Each time Neovim scrolls a grid, Zonvie compares the number of rows it moved with the ver value of 'mousescroll' (the rows one wheel event scrolls, 3 by default).

  • Up to ver rows is a normal scroll and is always eased.
  • More than ver rows is a large jump, and large_jump_behavior applies. With "partial", up to ver rows (at most 8) are eased.

With the default ver:3:

Action Rows moved Result
One wheel event 3 Eased
CTRL-E 1 Eased
CTRL-D e.g. 20 Large jump
Search to a distant match many Large jump

Changing 'mousescroll' (for example set mousescroll=ver:5) moves the threshold with it. Setting ver:0 disables the ease entirely.