mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 10:49:08 +00:00
feat(picker.actions): cmd
action now always allows to edit the command. Closes #1033
Some checks failed
CI / ci (push) Failing after 0s
Some checks failed
CI / ci (push) Failing after 0s
This commit is contained in:
parent
ed8f416b30
commit
a17788539a
1 changed files with 1 additions and 5 deletions
|
@ -477,11 +477,7 @@ function M.cmd(picker, item)
|
|||
picker:close()
|
||||
if item and item.cmd then
|
||||
vim.schedule(function()
|
||||
if item.command and (item.command.nargs ~= "0") then
|
||||
vim.api.nvim_input(":" .. item.cmd .. " ")
|
||||
else
|
||||
vim.cmd(item.cmd)
|
||||
end
|
||||
vim.api.nvim_input(":" .. item.cmd)
|
||||
end)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue