mirror of
https://github.com/tomru/nvim.git
synced 2026-03-03 06:27:14 +01:00
switch to sidekick
This commit is contained in:
@@ -1,7 +1,57 @@
|
|||||||
return {
|
return {
|
||||||
'greggh/claude-code.nvim',
|
'folke/sidekick.nvim',
|
||||||
dependencies = {
|
opts = {
|
||||||
'nvim-lua/plenary.nvim',
|
-- add any options here
|
||||||
|
cli = {
|
||||||
|
mux = {
|
||||||
|
backend = 'tmux',
|
||||||
|
enabled = true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
-- stylua: ignore
|
||||||
|
keys = {
|
||||||
|
{
|
||||||
|
"<leader>aa",
|
||||||
|
function() require("sidekick.cli").toggle() end,
|
||||||
|
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 = "Select CLI",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"<leader>at",
|
||||||
|
function() require("sidekick.cli").send({ msg = "{this}" }) end,
|
||||||
|
mode = { "x", "n" },
|
||||||
|
desc = "Send This",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"<leader>av",
|
||||||
|
function() require("sidekick.cli").send({ msg = "{selection}" }) end,
|
||||||
|
mode = { "x" },
|
||||||
|
desc = "Send Visual Selection",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"<leader>ap",
|
||||||
|
function() require("sidekick.cli").prompt() end,
|
||||||
|
mode = { "n", "x" },
|
||||||
|
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 Toggle Claude",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
opts = {},
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -262,6 +262,7 @@ return {
|
|||||||
marksman = { enable = true },
|
marksman = { enable = true },
|
||||||
sqlls = { enable = true },
|
sqlls = { enable = true },
|
||||||
yamlls = { enabled = true },
|
yamlls = { enabled = true },
|
||||||
|
copilot = { enabled = true },
|
||||||
}
|
}
|
||||||
|
|
||||||
---@type MasonLspconfigSettings
|
---@type MasonLspconfigSettings
|
||||||
|
|||||||
Reference in New Issue
Block a user