From ad68bf85c8f857aea9f13f492ab0d5d8597c6a6d Mon Sep 17 00:00:00 2001
From: sloane <git@sloanelybutsurely.com>
Date: Thu, 3 Apr 2025 11:04:36 -0400
Subject: [PATCH] install codecompanion

---
 home-manager/nixvim/default.nix | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/home-manager/nixvim/default.nix b/home-manager/nixvim/default.nix
index 695e392..5a183a1 100644
--- a/home-manager/nixvim/default.nix
+++ b/home-manager/nixvim/default.nix
@@ -264,5 +264,16 @@
     };
 
     plugins.copilot-lua.enable = true;
+    plugins.copilot-cmp.enable = true;
+    plugins.codecompanion = {
+      enable = true;
+      settings = {
+        strategies = {
+          agent.adapter = "copilot";
+          chat.adapter = "copilot";
+          inline.adapter = "copilot";
+        };
+      };
+    };
   };
 }