Update code companion config to work with latest version
This commit is contained in:
parent
3b28af288c
commit
0c0e65baac
1 changed files with 23 additions and 24 deletions
|
|
@ -5,6 +5,7 @@ return {
|
|||
},
|
||||
opts = {
|
||||
adapters = {
|
||||
http = {
|
||||
copilot = function()
|
||||
return require("codecompanion.adapters").extend("copilot", {
|
||||
schema = {
|
||||
|
|
@ -29,6 +30,7 @@ return {
|
|||
})
|
||||
end,
|
||||
},
|
||||
},
|
||||
strategies = {
|
||||
chat = {
|
||||
adapter = "copilot",
|
||||
|
|
@ -84,7 +86,4 @@ return {
|
|||
{ "<Leader>x", "<cmd>CodeCompanionActions<cr>" },
|
||||
{ "<Leader>c", "<cmd>CodeCompanionChat toggle<cr>" },
|
||||
},
|
||||
init = function()
|
||||
vim.cmd([[cab cc CodeCompanion]])
|
||||
end
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue