Skip to content

Commit

Permalink
fix(keys): dont add (n) to keys id
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Mar 25, 2023
1 parent 32d5f4a commit 9f9d733
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lua/lazy/core/handler/keys.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ function M.parse(value)
if type(mode) == "table" then
---@cast mode string[]
table.sort(mode)
ret.id = ret.id .. " (" .. table.concat(mode, ", ") .. ")"
elseif mode ~= "n" then
mode = table.concat(mode, ", ")
end
if mode ~= "n" then
ret.id = ret.id .. " (" .. mode .. ")"
end
end
Expand Down

0 comments on commit 9f9d733

Please sign in to comment.