nvim: Add vectorcode codecompanion extension

Installs vectorcode (the cli program) using uv (if `uv` is available on
the system), to provide a RAG tool for your repositories. Can then be
used in codecompanion to provide better coding feedback.
This commit is contained in:
Marty Oehme 2025-12-08 16:30:11 +01:00
parent 42f2b034b5
commit 6aa8aefe0e
Signed by: Marty
GPG key ID: 4E535BC19C61886E
2 changed files with 12 additions and 0 deletions

View file

@ -2,6 +2,7 @@
"Arduino.nvim": { "branch": "main", "commit": "774b841ef0306f88318a97d5a3527baa62241f15" },
"FixCursorHold.nvim": { "branch": "master", "commit": "1900f89dc17c603eec29960f57c00bd9ae696495" },
"Navigator.nvim": { "branch": "master", "commit": "91d86506ac2a039504d5205d32a1d4bc7aa57072" },
"VectorCode": { "branch": "main", "commit": "171361ea0410e739f9bf2a04c75113cd80d3c0d0" },
"bats.vim": { "branch": "master", "commit": "6a5d2ef22b0ede503d867770afd02ebb1f97b709" },
"blink-copilot": { "branch": "main", "commit": "41e91a659bd9b8cba9ba2ea68a69b52ba5a9ebd8" },
"blink.cmp": { "branch": "main", "commit": "9bcb14b43852a6f2bfd5ac9ef29cb5cf09b1b39b" },

View file

@ -89,6 +89,16 @@ return {
{ "ibhagwan/fzf-lua", optional = true },
"ravitemer/codecompanion-history.nvim",
"jinzhongjia/codecompanion-gitcommit.nvim",
{
"Davidyz/VectorCode",
cond = vim.fn.executable("uv") == 1,
version = "*",
build = 'uv tool install -U "vectorcode[mcp,lsp]"',
dependencies = { "nvim-lua/plenary.nvim" },
opts = {
async_backend = "lsp", -- requires cli install as `uv tool install vectorcode[lsp]`
},
},
{ -- enable mcp server agent extensions
"ravitemer/mcphub.nvim",
@ -205,6 +215,7 @@ return {
show_result_in_chat = true, -- Show tool results directly in chat buffer
},
},
vectorcode = {},
},
prompt_library = {
["DevOps strategy"] = {