mirror of
https://github.com/nix-community/nixvim.git
synced 2025-12-06 17:11:05 +01:00
treewide: remove internal use of helpers module arg
This commit is contained in:
parent
7add68e918
commit
dad19c1238
68 changed files with 687 additions and 758 deletions
|
|
@ -1,6 +1,5 @@
|
|||
{
|
||||
lib,
|
||||
helpers,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
|
|
@ -13,7 +12,7 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
|||
|
||||
settingsOptions = {
|
||||
mappings =
|
||||
helpers.defaultNullOpts.mkListOf types.str
|
||||
lib.nixvim.defaultNullOpts.mkListOf types.str
|
||||
[
|
||||
"<C-u>"
|
||||
"<C-d>"
|
||||
|
|
@ -33,25 +32,25 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
|||
```
|
||||
'';
|
||||
|
||||
hide_cursor = helpers.defaultNullOpts.mkBool true ''
|
||||
hide_cursor = lib.nixvim.defaultNullOpts.mkBool true ''
|
||||
If 'termguicolors' is set, hide the cursor while scrolling.
|
||||
'';
|
||||
|
||||
step_eof = helpers.defaultNullOpts.mkBool true ''
|
||||
step_eof = lib.nixvim.defaultNullOpts.mkBool true ''
|
||||
When `move_cursor` is `true` scrolling downwards will stop when the bottom line of the
|
||||
window is the last line of the file.
|
||||
'';
|
||||
|
||||
respect_scrolloff = helpers.defaultNullOpts.mkBool false ''
|
||||
respect_scrolloff = lib.nixvim.defaultNullOpts.mkBool false ''
|
||||
The cursor stops at the scrolloff margin.
|
||||
Try combining this option with either `stop_eof` or `cursor_scrolls_alone` (or both).
|
||||
'';
|
||||
|
||||
cursor_scrolls_alone = helpers.defaultNullOpts.mkBool true ''
|
||||
cursor_scrolls_alone = lib.nixvim.defaultNullOpts.mkBool true ''
|
||||
The cursor will keep on scrolling even if the window cannot scroll further.
|
||||
'';
|
||||
|
||||
easing_function = helpers.mkNullOrStr ''
|
||||
easing_function = lib.nixvim.mkNullOrStr ''
|
||||
Name of the easing function to use by default in all scrolling animamtions.
|
||||
`scroll()` that don't provide the optional `easing` argument will use this easing
|
||||
function.
|
||||
|
|
@ -59,7 +58,7 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
|||
(constant scrolling speed).
|
||||
'';
|
||||
|
||||
pre_hook = helpers.mkNullOrLuaFn ''
|
||||
pre_hook = lib.nixvim.mkNullOrLuaFn ''
|
||||
Function to run before the scrolling animation starts.
|
||||
The function will be called with the `info` parameter which can be optionally passed to
|
||||
`scroll()` (or any of the provided wrappers).
|
||||
|
|
@ -67,11 +66,11 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
|||
animations.
|
||||
'';
|
||||
|
||||
post_hook = helpers.mkNullOrLuaFn ''
|
||||
post_hook = lib.nixvim.mkNullOrLuaFn ''
|
||||
Equivalent to `pre_hook` but the function will run after the scrolling animation ends.
|
||||
'';
|
||||
|
||||
performance_mode = helpers.defaultNullOpts.mkBool false ''
|
||||
performance_mode = lib.nixvim.defaultNullOpts.mkBool false ''
|
||||
Option to enable "Performance Mode" on all buffers.
|
||||
'';
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue