feat: extract and configure code-companion

This commit is contained in:
Michael Mandl 2025-05-12 08:56:26 +02:00
parent 599be55422
commit 52fb50b13c
Signed by: mandlm
GPG key ID: 088ED38F036C7AF2
3 changed files with 30 additions and 13 deletions

26
neovim/codecompanion.lua Normal file
View 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,
}
})