Skip to content

Commit

Permalink
fix: for sporadic loss of lua function for mapping (#216)
Browse files Browse the repository at this point in the history
  • Loading branch information
tapayne88 committed Dec 17, 2021
1 parent 0fd9de7 commit 312c386
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/which-key/keys.lua
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ function M.parse_mappings(mappings, value, prefix)
if k == 1 then
mapping.label = v
elseif k == 2 then
mapping.cmd = mapping.label
mapping.cmd = value[1]
mapping.label = v
elseif k == "noremap" then
mapping.opts.noremap = v
Expand Down

0 comments on commit 312c386

Please sign in to comment.