Replies: 1 comment
-
opts = {
picker = {
sources = {
commands = {
actions = {
accept = function(picker, item)
vim.cmd(item.cmd)
picker:close()
end,
},
win = {
input = {
keys = {
['<C-y>'] = { 'accept', mode = { 'i', 'n' } }, -- Execute
['<CR>'] = { 'confirm', mode = { 'i', 'n' } }, -- Choose |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Current, the
Snacks.picker.commands()
will list commands, and after , there will be shown in command window and wait another , how to config it runs immediately?Beta Was this translation helpful? Give feedback.
All reactions