@@ -29,6 +29,8 @@ Table of Contents *VectorCode-table-of-contents*
2929- | VectorCode-integrations |
3030 - | VectorCode-milanglacier/minuet-ai.nvim |
3131 - | VectorCode-olimorris/codecompanion.nvim |
32+ - | VectorCode-tools |
33+ - | VectorCode-prompt-library |
3234 - | VectorCode-copilotc-nvim/copilotchat.nvim |
3335 - | VectorCode-setup |
3436 - | VectorCode-configuration-options |
@@ -176,6 +178,9 @@ OLIMORRIS/CODECOMPANION.NVIM ~
176178
177179<https://asciinema.org/a/8WP8QJHNAR9lEllZSSx3poLPD?t=3 >
178180
181+
182+ TOOLS
183+
179184The following requires VectorCode 0.7+ and a recent version of
180185CodeCompanion.nvim.
181186
@@ -295,6 +300,34 @@ so that when the LLM decide what information to include, it _may_ be able to
295300avoid omitting stuff related to query.
296301
297302
303+ PROMPT LIBRARY
304+
305+ On VectorCode 0.7.16+ and CodeCompanion.nvim 17.20.0+, VectorCode also provides
306+ a customisable prompt library that helps you RAG local directories. The
307+ following is the a preset that vectorises the lua source code and help files in
308+ the neovim runtime directory.
309+
310+ >lua
311+ require('codecompanion' ).setup{
312+ extensions = {
313+ vectorcode = {
314+ ---@type VectorCode.CodeCompanion.ExtensionOpts
315+ opts = {
316+ prompt_library = {
317+ {
318+ ["Neovim Tutor"] = {
319+ project_root = vim.env.VIMRUNTIME,
320+ file_patterns = { "lua/**/*.lua", "doc/**/*.txt" },
321+ },
322+ },
323+ }
324+ }
325+ }
326+ }
327+ }
328+ <
329+
330+
298331COPILOTC-NVIM/COPILOTCHAT.NVIM ~
299332
300333CopilotC-Nvim/CopilotChat.nvim
0 commit comments