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

This commit is contained in:
Simon Hauser
2023-06-08 23:10:26 +02:00
committed by GitHub
parent 991d5db624
commit 42267407ae
5 changed files with 36 additions and 37 deletions

View File

@@ -834,7 +834,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