diff --git a/doc/telescope.txt b/doc/telescope.txt index 50d61f9..d453e5f 100644 --- a/doc/telescope.txt +++ b/doc/telescope.txt @@ -2163,8 +2163,7 @@ actions.which_key({prompt_bufnr}) *actions.which_key()* Display the keymaps of registered actions similar to which-key.nvim. - Notes: - - The defaults can be overridden via - |action_generate.toggle_registered_actions|. + - The defaults can be overridden via |action_generate.which_key|. Parameters: ~ @@ -2413,7 +2412,7 @@ General usage: defaults = { mappings = { n = { - ["?"] = action_generate.toggle_registered_actions { + ["?"] = action_generate.which_key { name_width = 20, -- typically leads to smaller floats max_height = 0.5, -- increase potential maximum height seperator = " > ", -- change sep between mode, keybind, and name diff --git a/lua/telescope/actions/generate.lua b/lua/telescope/actions/generate.lua index 40fc4b7..6d9dc35 100644 --- a/lua/telescope/actions/generate.lua +++ b/lua/telescope/actions/generate.lua @@ -9,7 +9,7 @@ --- defaults = { --- mappings = { --- n = { ---- ["?"] = action_generate.toggle_registered_actions { +--- ["?"] = action_generate.which_key { --- name_width = 20, -- typically leads to smaller floats --- max_height = 0.5, -- increase potential maximum height --- seperator = " > ", -- change sep between mode, keybind, and name diff --git a/lua/telescope/actions/init.lua b/lua/telescope/actions/init.lua index 9cdc02a..13751ff 100644 --- a/lua/telescope/actions/init.lua +++ b/lua/telescope/actions/init.lua @@ -867,7 +867,7 @@ end --- Display the keymaps of registered actions similar to which-key.nvim.
--- - Notes: ---- - The defaults can be overridden via |action_generate.toggle_registered_actions|. +--- - The defaults can be overridden via |action_generate.which_key|. ---@param prompt_bufnr number: The prompt bufnr actions.which_key = function(prompt_bufnr, opts) opts = opts or {}