From 1dce1ddcf2c268f8ca1db53f0fd4ffc1a642e7f9 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Tue, 22 Apr 2025 09:41:07 +0200 Subject: [PATCH] feat: add CodeCompanion --- neovim/default.nix | 12 ++++++++++++ neovim/keymaps.lua | 1 + 2 files changed, 13 insertions(+) diff --git a/neovim/default.nix b/neovim/default.nix index beec25c..92f391a 100644 --- a/neovim/default.nix +++ b/neovim/default.nix @@ -86,6 +86,7 @@ copilot-lua copilot-cmp CopilotChat-nvim + codecompanion-nvim # debugging nvim-dap @@ -181,6 +182,17 @@ }, }) + require('codecompanion').setup({ + strategies = { + chat = { + adapter = "copilot", + }, + inline = { + adapter = "copilot", + }, + }, + }) + require("diffview").setup({ view = { merge_tool = { diff --git a/neovim/keymaps.lua b/neovim/keymaps.lua index 7874e14..64f8b70 100644 --- a/neovim/keymaps.lua +++ b/neovim/keymaps.lua @@ -69,3 +69,4 @@ require("better_escape").setup() -- open Copilot Chat window nnoremap("cc", ":lua require('CopilotChat').open()") +nnoremap("C", ":CodeCompanionChat #buffer")