You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
64 lines
1.6 KiB
64 lines
1.6 KiB
return { |
|
"folke/sidekick.nvim", |
|
opts = { |
|
-- add any options here |
|
cli = { |
|
mux = { |
|
backend = "zellij", |
|
enabled = true, |
|
}, |
|
}, |
|
}, |
|
-- stylua: ignore |
|
keys = { |
|
{ |
|
"<tab>", |
|
function() |
|
-- if there is a next edit, jump to it, otherwise apply it if any |
|
if not require("sidekick").nes_jump_or_apply() then |
|
return "<Tab>" -- fallback to normal tab |
|
end |
|
end, |
|
expr = true, |
|
desc = "Goto/Apply Next Edit Suggestion", |
|
}, |
|
{ |
|
"<leader>aa", |
|
function() require("sidekick.cli").toggle() end, |
|
mode = { "n", "v" }, |
|
desc = "Sidekick Toggle CLI", |
|
}, |
|
{ |
|
"<leader>as", |
|
function() require("sidekick.cli").select() end, |
|
-- Or to select only installed tools: |
|
-- require("sidekick.cli").select({ filter = { installed = true } }) |
|
desc = "Sidekick Select CLI", |
|
}, |
|
{ |
|
"<leader>as", |
|
function() require("sidekick.cli").send({ selection = true }) end, |
|
mode = { "v" }, |
|
desc = "Sidekick Send Visual Selection", |
|
}, |
|
{ |
|
"<leader>ap", |
|
function() require("sidekick.cli").prompt() end, |
|
mode = { "n", "v" }, |
|
desc = "Sidekick Select Prompt", |
|
}, |
|
{ |
|
"<c-.>", |
|
function() require("sidekick.cli").focus() end, |
|
mode = { "n", "x", "i", "t" }, |
|
desc = "Sidekick Switch Focus", |
|
}, |
|
-- Example of a keybinding to open Claude directly |
|
{ |
|
"<leader>ac", |
|
function() require("sidekick.cli").toggle({ name = "claude", focus = true }) end, |
|
desc = "Sidekick Claude Toggle", |
|
mode = { "n", "v" }, |
|
}, |
|
}, |
|
}
|
|
|