Lazy loading by multiple keys #422
-
Hey 👋🏼, I've been trying to setup a couple of plugins to lazy load via the use {'tversteeg/registers.nvim', keys = {{'n', '"'}, {'i', 'ctrl-r'}}} -- Interactive registers. The ☝🏼 works but only for the " under normal mode. When in insert mode Ctrl + R does not load |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi! Looks like you have an error in your keymap. In Vim/Neovim, to make a map with the ctrl key, you need to use the notation Hope this helps! |
Beta Was this translation helpful? Give feedback.
-
Awesome @wbthomason. That did the trick. I searched high and low but my Google-fu failed me. Also tried all the options I could think of but missed this one it seems. |
Beta Was this translation helpful? Give feedback.
Hi! Looks like you have an error in your keymap. In Vim/Neovim, to make a map with the ctrl key, you need to use the notation
<c-{the character you want to map}>
. So, in other words, your map should be<c-r>
. The following works for me as expected:use {'tversteeg/registers.nvim', keys = {{'n', '"'}, {'i', '<c-r>'}}}
Hope this helps!