Skip to content

Commit

Permalink
fix(debug): show original keymaps instead of ids for the keys handler
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Jun 19, 2023
1 parent 3b06329 commit 56b1f77
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lua/lazy/view/render.lua
Original file line number Diff line number Diff line change
Expand Up @@ -669,6 +669,14 @@ function M:debug()
plugins = vim.tbl_values(plugins)
table.sort(plugins)
self:append("", "LazySpecial", { indent = 2 })
if handler_type == "keys" then
for k, v in pairs(Handler.handlers.keys:values(Config.plugins[plugins[1]])) do
if k == value then
value = v
break
end
end
end
self:reason({ [handler_type] = value })
for _, plugin in pairs(plugins) do
self:append(" ")
Expand Down

0 comments on commit 56b1f77

Please sign in to comment.