mirror of
https://github.com/nvim-telescope/telescope.nvim
synced 2024-09-16 21:24:02 +02:00
fix(actions): set function name for generate.which_key
(#3044)
Using anonymous function is throwing warning "No name available for anonymous functions" when `action_generate.which_key` is used as shown in the docs.
This commit is contained in:
parent
d26b666b45
commit
5a701e9990
1 changed files with 2 additions and 1 deletions
|
@ -53,9 +53,10 @@ local action_generate = {}
|
|||
---@field border_hl string: winhl of "Normal" for keymap borders (default: "TelescopePromptBorder")
|
||||
---@field winblend number: pseudo-transparency of keymap hints floating window
|
||||
action_generate.which_key = function(opts)
|
||||
return function(prompt_bufnr)
|
||||
local which_key = function(prompt_bufnr)
|
||||
actions.which_key(prompt_bufnr, opts)
|
||||
end
|
||||
return which_key
|
||||
end
|
||||
|
||||
action_generate.refine = function(prompt_bufnr, opts)
|
||||
|
|
Loading…
Reference in a new issue