diff options
Diffstat (limited to 'common/nvim/lua/plugins/neoscroll.lua')
| -rwxr-xr-x | common/nvim/lua/plugins/neoscroll.lua | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/common/nvim/lua/plugins/neoscroll.lua b/common/nvim/lua/plugins/neoscroll.lua new file mode 100755 index 0000000..f2ecb04 --- /dev/null +++ b/common/nvim/lua/plugins/neoscroll.lua @@ -0,0 +1,22 @@ +local M = {} + +function M.setup() + local ok, neoscroll = pcall(require, 'neoscroll') + if not ok then + return false + end + + -- Basic configuration + neoscroll.setup({ + 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', + }) + + return true +end + +return M |
