Created
October 10, 2025 15:16
-
-
Save aiya000/83b26aa13937374fc74eebbfe956ed0f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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) |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ubuntu.2025-10-10.23-54-21.mp4