feat: add CodeCompanion

This commit is contained in:
Michael Mandl 2025-04-22 09:41:07 +02:00
parent 000823f879
commit 1dce1ddcf2
Signed by: mandlm
GPG key ID: 088ED38F036C7AF2
2 changed files with 13 additions and 0 deletions

View file

@ -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 = {

View file

@ -69,3 +69,4 @@ require("better_escape").setup()
-- open Copilot Chat window
nnoremap("<leader>cc", ":lua require('CopilotChat').open()<CR>")
nnoremap("<leader>C", ":CodeCompanionChat #buffer<CR>")