From 56b1f7715ed536a3e9ebfbf0d26e615d211a0cd8 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Mon, 19 Jun 2023 08:10:36 +0200 Subject: [PATCH] fix(debug): show original keymaps instead of ids for the keys handler --- lua/lazy/view/render.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lua/lazy/view/render.lua b/lua/lazy/view/render.lua index d5bc9df..9021af2 100644 --- a/lua/lazy/view/render.lua +++ b/lua/lazy/view/render.lua @@ -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(" ")