accounts as that is promitted to use at work. Since it's using the official Copilot plugin we can be sure that the token is using whatever is authorized.
36 lines
1,012 B
Lua
36 lines
1,012 B
Lua
return {
|
|
"olimorris/codecompanion.nvim",
|
|
dependencies = {
|
|
"nvim-lua/plenary.nvim",
|
|
"nvim-treesitter/nvim-treesitter",
|
|
"hrsh7th/nvim-cmp",
|
|
{ 'echasnovski/mini.diff', version = false },
|
|
{ "stevearc/dressing.nvim", opts = {} },
|
|
},
|
|
config = function()
|
|
require("codecompanion").setup({
|
|
strategies = {
|
|
chat = {
|
|
adapter = "copilot",
|
|
},
|
|
inline = {
|
|
adapter = "copilot",
|
|
},
|
|
agent = {
|
|
adapter = "copilot",
|
|
},
|
|
},
|
|
adapters = {
|
|
copilot = function() return require("codecompanion.adapters").extend("copilot", {}) end,
|
|
},
|
|
display = {
|
|
diff = {
|
|
provider = "mini_diff",
|
|
},
|
|
},
|
|
opts = {
|
|
log_level = "DEBUG",
|
|
},
|
|
})
|
|
end
|
|
}
|