|
1 |
| -*cinnamon.nvim.txt* For Neovim >= 0.8.0 Last change: 2024 July 12 |
| 1 | +*cinnamon.nvim.txt* For Neovim >= 0.8.0 Last change: 2024 July 13 |
2 | 2 |
|
3 | 3 | ==============================================================================
|
4 | 4 | Table of Contents *cinnamon.nvim-table-of-contents*
|
@@ -65,22 +65,24 @@ DEFAULT OPTIONS ~
|
65 | 65 | },
|
66 | 66 | ---@class ScrollOptions
|
67 | 67 | options = {
|
68 |
| - -- Post-movement callback |
69 |
| - callback = nil, ---@type function? |
| 68 | + -- Optional post-movement callback |
| 69 | + callback = function() end, |
70 | 70 | -- Delay between each movement step (in ms)
|
71 | 71 | delay = 7,
|
72 | 72 | max_delta = {
|
73 |
| - -- Maximum distance for line movements. Set to `nil` to disable |
74 |
| - line = nil, ---@type number? |
75 |
| - -- Maximum distance for column movements. Set to `nil` to disable |
76 |
| - column = nil, ---@type number? |
| 73 | + -- Maximum distance for line movements before smooth |
| 74 | + -- scrolling is skipped. Set to `false` to disable |
| 75 | + line = false, |
| 76 | + -- Maximum distance for column movements before smooth |
| 77 | + -- scrolling is skipped. Set to `false` to disable |
| 78 | + column = false, |
77 | 79 | -- Maximum duration for a movement (in ms). Automatically adjusts the step delay
|
78 |
| - time = 1000, ---@type number |
| 80 | + time = 1000, |
79 | 81 | },
|
80 | 82 | -- The scrolling mode
|
81 | 83 | -- `cursor`: Smoothly scrolls the cursor for any movement
|
82 | 84 | -- `window`: Smoothly scrolls the window ONLY when the cursor moves out of view
|
83 |
| - mode = "cursor", ---@type "cursor" | "window" |
| 85 | + mode = "cursor", |
84 | 86 | },
|
85 | 87 | }
|
86 | 88 | <
|
|
0 commit comments