mirror of
https://github.com/Baipyrus/nvim-config.git
synced 2024-12-26 05:11: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)
|
||||||
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 picker = action_state.get_current_picker(prompt_bufnr)
|
||||||
local selection = picker:get_multi_selection()
|
local selection = picker:get_multi_selection()
|
||||||
|
|
||||||
@ -258,7 +258,8 @@ return {
|
|||||||
-- refresh picker
|
-- refresh picker
|
||||||
actions.close(prompt_bufnr)
|
actions.close(prompt_bufnr)
|
||||||
vim.schedule(git_stash_mappings)
|
vim.schedule(git_stash_mappings)
|
||||||
end, { desc = 'git_drop_stash' })
|
end
|
||||||
|
map({ 'n', 'i' }, '<C-S-d>', git_drop_stash)
|
||||||
return true
|
return true
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user