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")