mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-26 10:48:35 +02:00
plugins/neoscroll: init
This commit is contained in:
parent
40a4f5ef67
commit
04091a13ec
3 changed files with 173 additions and 0 deletions
70
tests/test-sources/plugins/ui/neoscroll.nix
Normal file
70
tests/test-sources/plugins/ui/neoscroll.nix
Normal file
|
@ -0,0 +1,70 @@
|
|||
{
|
||||
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 = null;
|
||||
pre_hook = null;
|
||||
post_hook = null;
|
||||
performance_mode = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue