From d13360cad699cf795616611df4f7014674971906 Mon Sep 17 00:00:00 2001 From: Oliver Hartmann Date: Thu, 12 Dec 2024 14:37:23 +0100 Subject: [PATCH] added codecompanion --- lua/plugins/codecompanion.lua | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 lua/plugins/codecompanion.lua diff --git a/lua/plugins/codecompanion.lua b/lua/plugins/codecompanion.lua new file mode 100644 index 0000000..599f26e --- /dev/null +++ b/lua/plugins/codecompanion.lua @@ -0,0 +1,30 @@ +return { + "olimorris/codecompanion.nvim", + dependencies = { + "nvim-lua/plenary.nvim", + "nvim-treesitter/nvim-treesitter", + }, + branch = "main", + config = function() + require("codecompanion").setup({ + strategies = { + chat = { + adapter = "copilot", + }, + inline = { + adapter = "copilot", + }, + }, + -- adapters = { + -- anthropic = function() + -- return require("codecompanion.adapters").extend("copilot", { + -- env = { + -- api_key = "ghu_8hbMItSdtNIrzMI4svd94dem3ZCsk23VG446", + -- }, + -- }) + -- end, + -- }, + }) + end, +} +