mirror of https://github.com/folke/lazy.nvim.git
fix(debug): show original keymaps instead of ids for the keys handler
This commit is contained in:
parent
3b0632977e
commit
56b1f7715e
|
@ -669,6 +669,14 @@ function M:debug()
|
||||||
plugins = vim.tbl_values(plugins)
|
plugins = vim.tbl_values(plugins)
|
||||||
table.sort(plugins)
|
table.sort(plugins)
|
||||||
self:append("● ", "LazySpecial", { indent = 2 })
|
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 })
|
self:reason({ [handler_type] = value })
|
||||||
for _, plugin in pairs(plugins) do
|
for _, plugin in pairs(plugins) do
|
||||||
self:append(" ")
|
self:append(" ")
|
||||||
|
|
Loading…
Reference in New Issue