From c42ba195a7f543eba9c9083eda1cddeef2a497e4 Mon Sep 17 00:00:00 2001 From: Turiiya <34311583+ttytm@users.noreply.github.com> Date: Sat, 29 Jun 2024 07:30:39 +0200 Subject: [PATCH] neoscroll: fix new api options --- lua/nxvim/plugins/neoscroll.lua | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/lua/nxvim/plugins/neoscroll.lua b/lua/nxvim/plugins/neoscroll.lua index 4f00056..55a1c90 100644 --- a/lua/nxvim/plugins/neoscroll.lua +++ b/lua/nxvim/plugins/neoscroll.lua @@ -7,6 +7,8 @@ local neoscroll = require("neoscroll") -- { == Configuration ==> ===================================================== local config = { + mappings = { "zt", "zz", "zb" }, + hide_cursor = false, easing_function = "sine", -- Default easing function. } -- <== } @@ -16,12 +18,12 @@ local config = { nx.map({ -- { "", function() neoscroll.ctrl_d({ time = 150, easing = "quintic" }) end }, -- { "", function() neoscroll.ctrl_u({ time = 150, easing = "quintic" }) end }, - { "", function() neoscroll.ctrl_d({ time = 150 }) end }, - { "", function() neoscroll.ctrl_u({ time = 150 }) end }, - { "", function() neoscroll.ctrl_e(-0.1, { time = 100 }) end }, - { "", function() neoscroll.ctrl_y(0.1, { time = 100 }) end }, - { "", function() neoscroll.ctrl_b({ time = 250, easing = "circular" }) end }, - { "", function() neoscroll.ctrl_f({ time = 250, easing = "circular" }) end }, + { "", function() neoscroll.ctrl_d({ duration = 100 }) end }, + { "", function() neoscroll.ctrl_u({ duration = 100 }) end }, + { "", function() neoscroll.scroll(0.1, { duration = 100 }) end }, + { "", function() neoscroll.scroll(-0.1, { duration = 100 }) end }, + { "", function() neoscroll.ctrl_b({ duration = 180, easing = "circular" }) end }, + { "", function() neoscroll.ctrl_f({ duration = 180, easing = "circular" }) end }, { "z", function()