Skip to content

Commit

Permalink
feat: support opts.remap for keymap (folke#339)
Browse files Browse the repository at this point in the history
similar to the interface of `vim.keymap.set`
  • Loading branch information
MunifTanjim authored Sep 18, 2022
1 parent 45be0ef commit 6885b66
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lua/which-key/keys.lua
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,8 @@ function M.parse_mappings(mappings, value, prefix_n)
mapping.label = v
elseif k == "noremap" then
mapping.opts.noremap = v
elseif k == "remap" then
mapping.opts.noremap = not v
elseif k == "silent" then
mapping.opts.silent = v
elseif k == "mode" then
Expand Down

0 comments on commit 6885b66

Please sign in to comment.