aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/nvim/.config
diff options
context:
space:
mode:
Diffstat (limited to 'nvim/.config')
-rw-r--r--nvim/.config/nvim/lazy-lock.json3
-rw-r--r--nvim/.config/nvim/lua/plugins/codecompanion.lua30
2 files changed, 32 insertions, 1 deletions
diff --git a/nvim/.config/nvim/lazy-lock.json b/nvim/.config/nvim/lazy-lock.json
index 5999859..f419830 100644
--- a/nvim/.config/nvim/lazy-lock.json
+++ b/nvim/.config/nvim/lazy-lock.json
@@ -5,6 +5,7 @@
"cmp-cmdline": { "branch": "main", "commit": "d250c63aa13ead745e3a40f61fdd3470efde3923" },
"cmp-nvim-lsp": { "branch": "main", "commit": "39e2eda76828d88b773cc27a3f61d2ad782c922d" },
"cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
+ "codecompanion.nvim": { "branch": "main", "commit": "d40237586affe0d1a8248c2691e32b9015cf7873" },
"conform.nvim": { "branch": "master", "commit": "acc7337cfd24ddfa3109bfc8c258c09c88c5c450" },
"ferris.nvim": { "branch": "main", "commit": "b9cd307a4bb3de6d87fc5da26f0f2775f4e2873a" },
"fidget.nvim": { "branch": "main", "commit": "ef99df04a1c53a453602421bc0f756997edc8289" },
@@ -46,4 +47,4 @@
"vim-hjson": { "branch": "master", "commit": "adc104d4a4041a482e1af1914895a119e343c7e1" },
"vim-nftables": { "branch": "master", "commit": "26f8a506c6f3e41f1e4a8d6aa94c9a79a666bbff" },
"vim-tridactyl": { "branch": "master", "commit": "fdd069bde3a34c786abed4601b6d59a065590ad9" }
-} \ No newline at end of file
+}
diff --git a/nvim/.config/nvim/lua/plugins/codecompanion.lua b/nvim/.config/nvim/lua/plugins/codecompanion.lua
new file mode 100644
index 0000000..793912c
--- /dev/null
+++ b/nvim/.config/nvim/lua/plugins/codecompanion.lua
@@ -0,0 +1,30 @@
+---@type LazySpec
+local M = {
+ "olimorris/codecompanion.nvim",
+ cmd = {
+ "CodeCompanion",
+ "CodeCompanionChat",
+ "CodeCompanionActions",
+ "CodeCompanionToggle",
+ "CodeCompanionAdd",
+ },
+ dependencies = {
+ "nvim-lua/plenary.nvim",
+ "nvim-treesitter/nvim-treesitter",
+ },
+ opts = {
+ strategies = {
+ chat = {
+ adapter = "ollama",
+ },
+ inline = {
+ adapter = "ollama",
+ },
+ agent = {
+ adapter = "ollama",
+ },
+ },
+ },
+}
+
+return M