fix(actions): which_key after mappings rework (#2556)

(cherry picked from commit 42267407ae)
This commit is contained in:
Simon Hauser
2023-06-09 11:28:32 +02:00
parent c757f8a17d
commit 776b509f80
5 changed files with 36 additions and 37 deletions
+1 -1
View File
@@ -827,7 +827,7 @@ end
function make_entry.gen_from_keymaps(opts)
local function get_desc(entry)
if entry.callback and not entry.desc then
return require("telescope.actions.utils")._get_anon_function_name(entry.callback)
return require("telescope.actions.utils")._get_anon_function_name(debug.getinfo(entry.callback))
end
return vim.F.if_nil(entry.desc, entry.rhs)
end