From b4c1a7bccec636f759332c295d1348d7cb60e3a8 Mon Sep 17 00:00:00 2001 From: Lander Van den Bulcke Date: Thu, 20 Nov 2025 18:05:17 +0100 Subject: [PATCH] feat: add codecompanion Signed-off-by: Lander Van den Bulcke --- packages/default.nix | 1 + plugins/codecompanion.nix | 30 ++++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 plugins/codecompanion.nix diff --git a/packages/default.nix b/packages/default.nix index 52dba12..f01eafb 100644 --- a/packages/default.nix +++ b/packages/default.nix @@ -21,6 +21,7 @@ let coreModules = bareModules ++ [ self.myvimPlugins.autosession self.myvimPlugins.blink-cmp + self.myvimPlugins.codecompanion self.myvimPlugins.git self.myvimPlugins.lang self.myvimPlugins.lsp diff --git a/plugins/codecompanion.nix b/plugins/codecompanion.nix new file mode 100644 index 0000000..2268b86 --- /dev/null +++ b/plugins/codecompanion.nix @@ -0,0 +1,30 @@ +{ + plugins.codecompanion = { + enable = true; + + settings = { + display = { + action_palette = { + opts = { + show_default_prompt_library = true; + }; + provider = "default"; + }; + chat = { + window = { + layout = "vertical"; + opts = { + breakindent = true; + }; + }; + }; + }; + + strategies = { + agent.adapter = "gemini"; + chat.adapter = "gemini"; + inline.adapter = "gemini"; + }; + }; + }; +}