48 lines
1.1 KiB
Nix
48 lines
1.1 KiB
Nix
{
|
|
programs.nixvim.plugins = {
|
|
codecompanion = {
|
|
enable = true;
|
|
settings = {
|
|
adapters = {
|
|
ollama = {
|
|
__raw = ''
|
|
function()
|
|
return require('codecompanion.adapters').extend('ollama', {
|
|
env = {
|
|
url = "http://miguel-pc:11434",
|
|
},
|
|
schema = {
|
|
model = {
|
|
default = 'qwen2.5-coder:14b',
|
|
},
|
|
num_ctx = {
|
|
default = 32768,
|
|
},
|
|
},
|
|
})
|
|
end
|
|
'';
|
|
};
|
|
};
|
|
opts = {
|
|
log_level = "TRACE";
|
|
send_code = true;
|
|
use_default_actions = true;
|
|
use_default_prompts = true;
|
|
};
|
|
strategies = {
|
|
agent = {
|
|
adapter = "ollama";
|
|
};
|
|
chat = {
|
|
adapter = "ollama";
|
|
};
|
|
inline = {
|
|
adapter = "ollama";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|