feat(nvim): new codecompanion adapters

This commit is contained in:
Sergio Laín 2025-06-09 16:42:48 +02:00
parent abf362c5e7
commit e254fdf93e
No known key found for this signature in database
GPG key ID: 51BB28D8B42FB438

View file

@ -37,10 +37,30 @@ return {
},
})
end,
ollama31 = function()
return require("codecompanion.adapters").extend("ollama", {
name = "ollama3.1",
schema = {
model = {
default = "ollama3.1:latest",
},
},
})
end,
qwen3 = function()
return require("codecompanion.adapters").extend("ollama", {
name = "qwen3",
schema = {
model = {
default = "qwen3:14b",
},
},
})
end,
},
strategies = {
chat = {
adapter = "deepseek_r1",
adapter = "qwen3",
roles = {
llm = " CodeCompanion",
user = "" .. user:sub(1, 1):upper() .. user:sub(2),
@ -50,7 +70,7 @@ return {
stop = { modes = { n = "<C-c>" } },
},
},
inline = { adapter = "deepseek_r1" },
inline = { adapter = "ollama31" },
agent = { adapter = "deepseek_r1" },
},
display = {