NrrwRgn
NrrwRgn copied to clipboard
How to remap all key bindings ?
I use Lazy.nvim to install the plugin, I want:
(1) disable all current default key bindings.
(2) only define a key binding (eg, <leader> n) to relpace function of current <leader>nr.
that is not possible. The plugin defines keybindings for a reason.
Thanks. I forked this project and solved this issue!
that is not possible. The plugin defines keybindings for a reason.
I too would prefer to disable all keybindings and define my own, why do you not want this to be possible, for what reasons? 🤔
you just need to re-define those mappings here:
https://github.com/chrisbra/NrrwRgn/blob/e027db9d94f94947153cd7b5ac9abd04371ab2b0/plugin/NrrwRgn.vim#L68-L81
and then it shouldn't define its own mappings.
Setting g:nrrw_rgn_nomap_nr & g:nrrw_rgn_nomap_Nr is even better, my mappings would be dynamically set later so not from the start.