feat: extract and configure code-companion
This commit is contained in:
parent
599be55422
commit
52fb50b13c
3 changed files with 30 additions and 13 deletions
26
neovim/codecompanion.lua
Normal file
26
neovim/codecompanion.lua
Normal file
|
@ -0,0 +1,26 @@
|
|||
local codecompanion = require("codecompanion")
|
||||
|
||||
codecompanion.setup({
|
||||
strategies = {
|
||||
chat = {
|
||||
adapter = "copilot",
|
||||
},
|
||||
inline = {
|
||||
adapter = "copilot",
|
||||
},
|
||||
cmd = {
|
||||
adapter = "copilot",
|
||||
},
|
||||
},
|
||||
adapters = {
|
||||
copilot = function()
|
||||
return require("codecompanion.adapters").extend("copilot", {
|
||||
schema = {
|
||||
model = {
|
||||
default = "claude-3.7-sonnet",
|
||||
},
|
||||
},
|
||||
})
|
||||
end,
|
||||
}
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue