feat: add codecompanion
Signed-off-by: Lander Van den Bulcke <landervandenbulcke@gmail.com>
This commit is contained in:
parent
03e25b6d01
commit
0e9a291c24
2 changed files with 57 additions and 0 deletions
|
|
@ -21,6 +21,7 @@ let
|
||||||
coreModules = bareModules ++ [
|
coreModules = bareModules ++ [
|
||||||
self.myvimPlugins.autosession
|
self.myvimPlugins.autosession
|
||||||
self.myvimPlugins.blink-cmp
|
self.myvimPlugins.blink-cmp
|
||||||
|
self.myvimPlugins.codecompanion
|
||||||
self.myvimPlugins.git
|
self.myvimPlugins.git
|
||||||
self.myvimPlugins.lang
|
self.myvimPlugins.lang
|
||||||
self.myvimPlugins.lsp
|
self.myvimPlugins.lsp
|
||||||
|
|
|
||||||
56
plugins/codecompanion.nix
Normal file
56
plugins/codecompanion.nix
Normal file
|
|
@ -0,0 +1,56 @@
|
||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
plugins.codecompanion = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
adapters = {
|
||||||
|
acp = {
|
||||||
|
gemini_cli = {
|
||||||
|
__raw = ''
|
||||||
|
lua
|
||||||
|
function()
|
||||||
|
return require("codecompanion.adapters").extend("gemini_cli", {
|
||||||
|
commands = {
|
||||||
|
default = {
|
||||||
|
"gemini",
|
||||||
|
"--debug",
|
||||||
|
"--experimental-acp",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
end
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
display = {
|
||||||
|
action_palette = {
|
||||||
|
opts = {
|
||||||
|
show_default_prompt_library = true;
|
||||||
|
};
|
||||||
|
provider = "default";
|
||||||
|
};
|
||||||
|
chat = {
|
||||||
|
window = {
|
||||||
|
layout = "vertical";
|
||||||
|
opts = {
|
||||||
|
breakindent = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
strategies = {
|
||||||
|
agent.adapter = "gemini_cli";
|
||||||
|
chat.adapter = "gemini_cli";
|
||||||
|
inline.adapter = "gemini_cli";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
extraPackages = with pkgs; [
|
||||||
|
gemini-cli
|
||||||
|
];
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue