format codecompanion

This commit is contained in:
Oliver Hartmann 2025-03-28 23:43:47 +01:00
parent 345147cc91
commit 0ccaeed2e5

View File

@ -1,29 +1,29 @@
return { return {
'olimorris/codecompanion.nvim', 'olimorris/codecompanion.nvim',
dependencies = { dependencies = {
'nvim-lua/plenary.nvim', 'nvim-lua/plenary.nvim',
'nvim-treesitter/nvim-treesitter', 'nvim-treesitter/nvim-treesitter',
}, },
branch = 'main', branch = 'main',
config = function() config = function()
require('codecompanion').setup({ require('codecompanion').setup({
strategies = { strategies = {
chat = { chat = {
adapter = 'copilot', adapter = 'copilot',
}, },
inline = { inline = {
adapter = 'copilot', adapter = 'copilot',
}, },
}, },
-- adapters = { -- adapters = {
-- anthropic = function() -- anthropic = function()
-- return require('codecompanion.adapters').extend('copilot', { -- return require('codecompanion.adapters').extend('copilot', {
-- env = { -- env = {
-- api_key = 'ghu_8hbMItSdtNIrzMI4svd94dem3ZCsk23VG446', -- api_key = 'ghu_8hbMItSdtNIrzMI4svd94dem3ZCsk23VG446',
-- }, -- },
-- }) -- })
-- end, -- end,
-- }, -- },
}) })
end, end,
} }