Skip to content

Commit 6aae747

Browse files
author
Albin Vass
committed
Add codecompanion
1 parent 9c1e511 commit 6aae747

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

home-manager/modules/neovim/default.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
);
5050

5151
plugins = with pkgs.vimPlugins; [
52+
codecompanion-nvim
5253
nvim-surround
5354
catppuccin-nvim
5455
vimagit

home-manager/modules/neovim/nvim/lua/base.lua

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,17 @@ vim.api.nvim_set_hl(0, "GitSignsCurrentLineBlame", {fg = "DarkGrey", bg = 'NONE'
7070
vim.keymap.set("n", "<leader>-", function()
7171
require("yazi").yazi()
7272
end)
73+
74+
require("codecompanion").setup({
75+
strategies = {
76+
chat = {
77+
adapter = "copilot",
78+
},
79+
inline = {
80+
adapter = "copilot",
81+
},
82+
cmd = {
83+
adapter = "copilot",
84+
},
85+
},
86+
})

0 commit comments

Comments
 (0)