Skip to content

Commit a5b5cef

Browse files
Davidyzgithub-actions[bot]
authored andcommitted
Auto generate docs
1 parent e1288c8 commit a5b5cef

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

doc/VectorCode.txt

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
179184
The following requires VectorCode 0.7+ and a recent version of
180185
CodeCompanion.nvim.
181186

@@ -295,6 +300,34 @@ so that when the LLM decide what information to include, it _may_ be able to
295300
avoid 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+
298331
COPILOTC-NVIM/COPILOTCHAT.NVIM ~
299332

300333
CopilotC-Nvim/CopilotChat.nvim

0 commit comments

Comments
 (0)