From 3562869b9070452c7b101b3f175b0f0004409be7 Mon Sep 17 00:00:00 2001 From: Ian Roddis <31021769+iroddis@users.noreply.github.com> Date: Tue, 31 Dec 2024 08:48:45 -0400 Subject: [PATCH] Adding codecompanion plugin --- init.lua | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/init.lua b/init.lua index dfc1286..4dc8c4b 100644 --- a/init.lua +++ b/init.lua @@ -324,6 +324,15 @@ require('lazy').setup({ }, }, + -- AI coding + { + "olimorris/codecompanion.nvim", + dependencies = { + "nvim-lua/plenary.nvim", + "nvim-treesitter/nvim-treesitter", + }, + config = true + } -- NOTE: Next Step on Your Neovim Journey: Add/Configure additional "plugins" for kickstart -- These are some example plugins that I've included in the kickstart repository. -- Uncomment any of the lines below to enable them. @@ -905,6 +914,17 @@ autocmd("BufWritePost", { command = ":FormatWrite", }) +require("codecompanion").setup({ + strategies = { + chat = { + adapter = "anthropic", + }, + inline = { + adapter = "anthropic", + }, + }, +}) + -- The line beneath this is called `modeline`. See `:help modeline` -- vim: ts=2 sts=2 sw=2 et