neo2005/config/plugins/ai/default.nix
Barna Máté 09ebce4613 Added activity watch
- added code companion
- added neogen for annotations
- remapped trouble keybinds
- some other stuff idk
2024-12-15 09:31:17 +01:00

50 lines
1.1 KiB
Nix

{ pkgs, ... }: {
plugins.codecompanion = {
enable = true;
settings = {
adapters = {
ollama = {
__raw = ''
function()
return require('codecompanion.adapters').extend('ollama', {
env = {
url = "http://127.0.0.1:11434",
},
schema = {
model = {
default = 'qwen2.5-coder:latest',
-- default = "llama3.1:8b-instruct-q8_0",
},
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";
};
};
};
};
}