mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-22 04:21:08 +00:00
feat(sidekick): use <a-a> in any snacks picker to send the (selected) results to an AI tool
This commit is contained in:
parent
5effc77185
commit
26c43a9b93
1 changed files with 24 additions and 0 deletions
|
|
@ -106,4 +106,28 @@ return {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
"folke/snacks.nvim",
|
||||||
|
optional = true,
|
||||||
|
opts = {
|
||||||
|
picker = {
|
||||||
|
actions = {
|
||||||
|
sidekick_send = function(...)
|
||||||
|
return require("sidekick.cli.snacks").send(...)
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
win = {
|
||||||
|
input = {
|
||||||
|
keys = {
|
||||||
|
["<a-a>"] = {
|
||||||
|
"sidekick_send",
|
||||||
|
mode = { "n", "i" },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue