Skip to content

Commit

Permalink
fix(ui): use correct keymap for display. Fixes #1089
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Oct 8, 2023
1 parent 4b5b03f commit 26762c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/lazy/view/render.lua
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ function M:reason(reason, opts)
value = value:match("User (.*)") or value
end
if key == "keys" then
value = type(value) == "string" and value or value.lhs
value = type(value) == "string" and value or value.lhs or value[1]
end
local hl = "LazyReason" .. key:sub(1, 1):upper() .. key:sub(2)
local icon = Config.options.ui.icons[key]
Expand Down

0 comments on commit 26762c9

Please sign in to comment.