fix(ui): fixed keymaps in debug view

This commit is contained in:
Folke Lemaitre 2023-10-17 00:29:09 +02:00
parent 3049575bd8
commit fb9795e49f
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 1 additions and 2 deletions

View File

@ -682,7 +682,6 @@ function M:debug()
Util.foreach(require("lazy.core.handler").handlers, function(handler_type, handler)
Util.foreach(handler.active, function(value, plugins)
assert(type(value) == "string")
if not vim.tbl_isempty(plugins) then
---@type string[]
plugins = vim.tbl_values(plugins)
@ -691,7 +690,7 @@ function M:debug()
if handler_type == "keys" then
for k, v in pairs(Config.plugins[plugins[1]]._.handlers.keys) do
if k == value then
value = v.name
value = Keys.to_string(v)
break
end
end