stevearc@open-source.socialtoNeovim@open-source.social•Going beyond the :map command and finding out in what file keymaps are declared...
2·
1 year agoYou can see where your keymaps were set with :verbose map
, or :verbose nmap
for all your normal maps, or :verbose nmap <leader>f
for all your normal maps that start with <leader>f
. Note that if your keymap was set from lua you will only see “Last set from lua”. To get where in lua, you’ll need to start Neovim in verbose mode nvim -V1
. See :help verbose-cmd
for more information.
Yep that’s me, issues welcome 🙂
This is why I mentioned starting in verbose mode
nvim -V1
. If you do that you should see the exact line number where the keymap was set from lua.