Learn how to manage and customize key mappings in NyxVim
vim.keymap.set
for defining mappings. Here’s the basic syntax:
mode
: The mode where the mapping is active (e.g., “n” for normal mode)lhs
: The key combination to trigger the mappingrhs
: The command or function to executeopts
: Additional options (optional)desc
option in opts
is used by NvCheatsheet to document the mapping. The first word in desc
will be used as the group heading.LspAttach
autocmd or right after your on_attach
function.desc
option for clarity.:verbose map <key>
to see if the mapping is being overridden.<leader>ch
) to view all your current mappings at a glance.