mirror of
https://github.com/Baipyrus/nvim-config.git
synced 2024-12-25 12:51:45 +00:00
refactor: extract mapping functionality to use function name for help
This commit is contained in:
parent
29aabb6546
commit
a1ca7a6d77
@ -214,7 +214,7 @@ return {
|
||||
end)
|
||||
end
|
||||
|
||||
map({ 'n', 'i' }, '<C-S-d>', 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' }, '<C-S-d>', git_drop_stash)
|
||||
return true
|
||||
end,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user