1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-11-17 07:52:47 +01:00
nixvim/tests/test-sources/plugins/by-name/neoscroll/default.nix
saygo-png 79d53a50e2 tests: use __empty and __raw
Signed-off-by: saygo-png <saygo.mail@proton.me>
2025-11-05 21:26:13 +00:00

70 lines
1.4 KiB
Nix

{
empty = {
plugins.neoscroll.enable = true;
};
example = {
plugins.neoscroll = {
enable = true;
settings = {
mappings = [
"<C-u>"
"<C-d>"
"<C-b>"
"<C-f>"
"<C-y>"
"<C-e>"
"zt"
"zz"
"zb"
];
hide_cursor = true;
stop_eof = true;
respect_scrolloff = false;
cursor_scrolls_alone = true;
easing_function = "quadratic";
pre_hook = ''
function(info)
if info == "cursorline" then
vim.wo.cursorline = false
end
end
'';
post_hook = ''
function(info)
if info == "cursorline" then
vim.wo.cursorline = true
end
end
'';
};
};
};
defaults = {
plugins.neoscroll = {
enable = true;
settings = {
mappings = [
"<C-u>"
"<C-d>"
"<C-b>"
"<C-f>"
"<C-y>"
"<C-e>"
"zt"
"zz"
"zb"
];
hide_cursor = true;
step_eof = true;
respect_scrolloff = false;
cursor_scrolls_alone = true;
easing_function.__raw = "nil";
pre_hook.__raw = "nil";
post_hook.__raw = "nil";
performance_mode = false;
};
};
};
}