diff --git a/lazy-lock.json b/lazy-lock.json index e432df80..df58c984 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -5,6 +5,7 @@ "cmp-nvim-lsp": { "branch": "main", "commit": "39e2eda76828d88b773cc27a3f61d2ad782c922d" }, "cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" }, "cmp_luasnip": { "branch": "master", "commit": "98d9cb5c2c38532bd9bdb481067b20fea8f32e90" }, + "codecompanion.nvim": { "branch": "main", "commit": "7768080c8fd472ca96372a078ed6c28e867b3649" }, "conform.nvim": { "branch": "master", "commit": "a203480a350b03092e473bf3001733d547160a73" }, "copilot.lua": { "branch": "master", "commit": "f8d8d872bb319f640d5177dad5fbf01f7a16d7d0" }, "dressing.nvim": { "branch": "master", "commit": "fc78a3ca96f4db9f8893bb7e2fd9823e0780451b" }, diff --git a/lua/custom/plugins/codecompanion.lua b/lua/custom/plugins/codecompanion.lua new file mode 100644 index 00000000..83f329a1 --- /dev/null +++ b/lua/custom/plugins/codecompanion.lua @@ -0,0 +1,21 @@ +return { + 'olimorris/codecompanion.nvim', + dependencies = { + 'nvim-lua/plenary.nvim', + 'nvim-treesitter/nvim-treesitter', + -- The following are optional: + { 'MeanderingProgrammer/render-markdown.nvim', ft = { 'markdown', 'codecompanion' } }, + }, + config = function() + require('codecompanion').setup { + strategies = { + chat = { + adapter = 'anthropic', + }, + inline = { + adapter = 'anthropic', + }, + }, + } + end, +}