From a1ca7a6d778aa93b7f6a2af7b33f2671b74204d0 Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Tue, 26 Nov 2024 10:36:46 +0100 Subject: [PATCH] refactor: extract mapping functionality to use function name for help --- lua/kickstart/plugins/telescope.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lua/kickstart/plugins/telescope.lua b/lua/kickstart/plugins/telescope.lua index 6f84876..a8bec96 100644 --- a/lua/kickstart/plugins/telescope.lua +++ b/lua/kickstart/plugins/telescope.lua @@ -214,7 +214,7 @@ return { end) end - map({ 'n', 'i' }, '', function(prompt_bufnr) + local function git_drop_stash(prompt_bufnr) local picker = action_state.get_current_picker(prompt_bufnr) local selection = picker:get_multi_selection() @@ -258,7 +258,8 @@ return { -- refresh picker actions.close(prompt_bufnr) vim.schedule(git_stash_mappings) - end, { desc = 'git_drop_stash' }) + end + map({ 'n', 'i' }, '', git_drop_stash) return true end, }