feat(mappings): allowing passing desc to mappings (#2892)

This commit is contained in:
James Trew
2024-01-27 08:00:48 -05:00
committed by GitHub
parent f1fd99ebfb
commit 2f3857c25b
2 changed files with 15 additions and 8 deletions

View File

@@ -1939,7 +1939,7 @@ ordered from the lowest priority to the highest priority.
map({"i", "n"}, "<C-r>", function(_prompt_bufnr)
print "You typed <C-r>"
end)
end, { desc = "desc for which key"})
-- needs to return true if you want to map default_mappings and
-- false if not