mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 10:49:08 +00:00
fix(picker.actions): keymap confirm. Closes #1252
This commit is contained in:
parent
570c035b94
commit
a9a84dde2e
1 changed files with 7 additions and 4 deletions
|
@ -421,11 +421,14 @@ M.keymaps = {
|
|||
plugs = false,
|
||||
["local"] = true,
|
||||
modes = { "n", "v", "x", "s", "o", "i", "c", "t" },
|
||||
---@param picker snacks.Picker
|
||||
confirm = function(picker, item)
|
||||
picker:close()
|
||||
if item then
|
||||
vim.api.nvim_input(item.item.lhs)
|
||||
end
|
||||
picker:norm(function()
|
||||
if item then
|
||||
picker:close()
|
||||
vim.api.nvim_input(item.item.lhs)
|
||||
end
|
||||
end)
|
||||
end,
|
||||
actions = {
|
||||
toggle_global = function(picker)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue