updates codecompanion config
This commit is contained in:
parent
21ff475f93
commit
d6d992ec13
2 changed files with 27 additions and 26 deletions
|
|
@ -1,16 +1,17 @@
|
|||
return {
|
||||
"olimorris/codecompanion.nvim",
|
||||
opts = {
|
||||
strategies = {
|
||||
chat = {
|
||||
adapter = "anthropic",
|
||||
},
|
||||
inline = {
|
||||
adapter = "anthropic",
|
||||
},
|
||||
},
|
||||
},
|
||||
config = function()
|
||||
require("codecompanion").setup({
|
||||
strategies = {
|
||||
chat = {
|
||||
adapter = "anthropic",
|
||||
},
|
||||
inline = {
|
||||
adapter = "anthropic",
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
vim.cmd([[cab cc CodeCompanion]])
|
||||
end,
|
||||
dependencies = {
|
||||
|
|
@ -18,8 +19,8 @@ return {
|
|||
"nvim-treesitter/nvim-treesitter",
|
||||
},
|
||||
keys = {
|
||||
{ "<leader>ac", "<cmd>CodeCompanionChat Toggle<cr>", desc = "Open companion chat", mode = "n" },
|
||||
{ "<leader>aa", "<cmd>CodeCompanionActions<cr>", desc = "Open companion actions", mode = "n" },
|
||||
{ "ga", "<cmd>CodeCompanionChat Add<cr>", desc = "Add selection to chat", mode = "v" },
|
||||
{ "<leader>cc", "<cmd>CodeCompanionChat Toggle<cr>", desc = "Open companion chat", mode = "n" },
|
||||
{ "<leader>ca", "<cmd>CodeCompanionActions<cr>", desc = "Open companion actions", mode = "n" },
|
||||
{ "ga", "<cmd>CodeCompanionChat Add<cr>", desc = "Add selection", mode = "v" },
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue