Skip to content

Commit

Permalink
neoscroll: fix new api options
Browse files Browse the repository at this point in the history
  • Loading branch information
ttytm committed Jun 29, 2024
1 parent aa61f1a commit c42ba19
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions lua/nxvim/plugins/neoscroll.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ local neoscroll = require("neoscroll")
-- { == Configuration ==> =====================================================

local config = {
mappings = { "zt", "zz", "zb" },
hide_cursor = false,
easing_function = "sine", -- Default easing function.
}
-- <== }
Expand All @@ -16,12 +18,12 @@ local config = {
nx.map({
-- { "<C-d>", function() neoscroll.ctrl_d({ time = 150, easing = "quintic" }) end },
-- { "<C-u>", function() neoscroll.ctrl_u({ time = 150, easing = "quintic" }) end },
{ "<C-d>", function() neoscroll.ctrl_d({ time = 150 }) end },
{ "<C-u>", function() neoscroll.ctrl_u({ time = 150 }) end },
{ "<C-e>", function() neoscroll.ctrl_e(-0.1, { time = 100 }) end },
{ "<C-y>", function() neoscroll.ctrl_y(0.1, { time = 100 }) end },
{ "<C-b>", function() neoscroll.ctrl_b({ time = 250, easing = "circular" }) end },
{ "<C-f>", function() neoscroll.ctrl_f({ time = 250, easing = "circular" }) end },
{ "<C-d>", function() neoscroll.ctrl_d({ duration = 100 }) end },
{ "<C-u>", function() neoscroll.ctrl_u({ duration = 100 }) end },
{ "<C-e>", function() neoscroll.scroll(0.1, { duration = 100 }) end },
{ "<C-y>", function() neoscroll.scroll(-0.1, { duration = 100 }) end },
{ "<C-b>", function() neoscroll.ctrl_b({ duration = 180, easing = "circular" }) end },
{ "<C-f>", function() neoscroll.ctrl_f({ duration = 180, easing = "circular" }) end },
{
"z<CR>",
function()
Expand Down

0 comments on commit c42ba19

Please sign in to comment.