Skip to content

Instantly share code, notes, and snippets.

@aiya000
Created October 10, 2025 15:16
Show Gist options
  • Select an option

  • Save aiya000/83b26aa13937374fc74eebbfe956ed0f to your computer and use it in GitHub Desktop.

Select an option

Save aiya000/83b26aa13937374fc74eebbfe956ed0f to your computer and use it in GitHub Desktop.
local neoscroll = require('neoscroll')
-- ... ここにその他設定(setup()など)
local keymaps_opts = {
duration = 200,
easing = 'quadratic',
}
vim.keymap.set('n', 'gg', function()
neoscroll.scroll(-100, keymaps_opts)
vim.defer_fn(function()
vim.cmd('normal! gg')
end, 100)
end)
vim.keymap.set('n', 'G', function()
neoscroll.scroll(100, keymaps_opts)
vim.defer_fn(function()
vim.cmd('normal! G')
end, 100)
end)
@aiya000
Copy link
Author

aiya000 commented Oct 10, 2025

Ubuntu.2025-10-10.23-54-21.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment