fix(debug): show original keymaps instead of ids for the keys handler

This commit is contained in:
Folke Lemaitre 2023-06-19 08:10:36 +02:00
parent 3b0632977e
commit 56b1f7715e
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 8 additions and 0 deletions

View File

@ -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(" ")