karb94 / neoscroll.nvim

Smooth scrolling neovim plugin written in lua
MIT License
1.46k stars 36 forks source link

[Help] How to disable all of the default keymaps and manually define them #54

Closed pidgeon777 closed 2 years ago

pidgeon777 commented 2 years ago

What I wanted to achieve, is to disable all of the neoscroll.nvim mappings, and instead manually map the keys to the commands I want.

Does a way of doing that exist?

karb94 commented 2 years ago

As explained in :h neoscroll-options one can disable all mappings by passing an empty table ({}) to the mappings options. So the setup() function would look something like this:

require('neoscroll').setup({
    mappings = {}
})