@@ -10,6 +10,7 @@ Table of Contents *VectorCode-table-of-contents*
1010 - Configuration | VectorCode-neovim-plugin-configuration |
1111 - API Usage | VectorCode-neovim-plugin-api-usage |
1212 - Debugging and Logging | VectorCode-neovim-plugin-debugging-and-logging |
13+ 2. Links | VectorCode-links |
1314
1415==============================================================================
15161. NeoVim Plugin *VectorCode-neovim-plugin*
@@ -22,6 +23,7 @@ Table of Contents *VectorCode-table-of-contents*
2223 [!NOTE] When the neovim plugin doesn’t work properly, please try upgrading
2324 the CLI tool to the latest version before opening an issue.
2425- | VectorCode-installation |
26+ - | VectorCode-nix |
2527- | VectorCode-integrations |
2628- | VectorCode-user-command |
2729 - | VectorCode-`vectorcode-register` |
@@ -91,6 +93,13 @@ you can use the following plugin spec:
9193 <https://archlinux.org/packages/extra/x86_64/neovim/ > repository of Arch
9294 Linux).
9395
96+ NIX ~
97+
98+ There’s a community-maintained nix package
99+ <https://nixpk.gs/pr-tracker.html?pr=413395 > submitted by @sarahec
100+ <https://github.com/sarahec > for the Neovim plugin.
101+
102+
94103INTEGRATIONS *VectorCode-neovim-plugin-integrations*
95104
96105The wiki <https://github.com/Davidyz/VectorCode/wiki/Neovim-Integrations >
@@ -160,6 +169,9 @@ This function initialises the VectorCode client and sets up some default
160169>lua
161170 -- Default configuration
162171 require("vectorcode").setup({
172+ cli_cmds = {
173+ vectorcode = "vectorcode",
174+ },
163175 async_opts = {
164176 debounce = 10,
165177 events = { "BufWritePost", "InsertEnter", "BufReadPost" },
@@ -183,22 +195,25 @@ This function initialises the VectorCode client and sets up some default
183195<
184196
185197The following are the available options for the parameter of this function: -
186- `n_query` number of retrieved documents. A large number gives a higher chance of
187- including the right file, but with the risk of saturating the context window
188- and getting truncated. Default: `1 ` ; - `notify` whether to show notifications
189- when a query is completed. Default: `true` ; - `timeout_ms` timeout in
190- milliseconds for the query operation. Applies to synchronous API only. Default:
191- `5000 ` (5 seconds); - `exclude_this` whether to exclude the file you’re
192- editing. Setting this to `false` may lead to an outdated version of the current
193- file being sent to the LLM as the prompt, and can lead to generations with
194- outdated information; - `async_opts` default options used when registering
195- buffers. See | VectorCode-`register_buffer(bufnr?,-opts?)` | for details; -
196- `async_backend` the async backend to use, currently either `" default" ` or
197- `" lsp" ` . Default: `" default" ` ; - `on_setup` some actions that can be registered
198- to run when `setup` is called. Supported keys: - `update ` if `true` , the plugin
199- will run `vectorcode update` on startup to update the embeddings; - `lsp ` if
200- `true` , the plugin will try to start the LSP server on startup so that you
201- won’t need to wait for the server loading when making your first request. -
198+ `cli_cmds` A table to customize the CLI command names / paths used by the
199+ plugin. Supported key: - `vectorcode` The command / path to use for the main CLI
200+ tool. Default: `" vectorcode" ` . - `n_query` number of retrieved documents. A
201+ large number gives a higher chance of including the right file, but with the
202+ risk of saturating the context window and getting truncated. Default: `1 ` ; -
203+ `notify` whether to show notifications when a query is completed. Default:
204+ `true` ; - `timeout_ms` timeout in milliseconds for the query operation. Applies
205+ to synchronous API only. Default: `5000 ` (5 seconds); - `exclude_this` whether
206+ to exclude the file you’re editing. Setting this to `false` may lead to an
207+ outdated version of the current file being sent to the LLM as the prompt, and
208+ can lead to generations with outdated information; - `async_opts` default
209+ options used when registering buffers. See
210+ | VectorCode-`register_buffer(bufnr?,-opts?)` | for details; - `async_backend` the
211+ async backend to use, currently either `" default" ` or `" lsp" ` . Default:
212+ `" default" ` ; - `on_setup` some actions that can be registered to run when
213+ `setup` is called. Supported keys: - `update ` if `true` , the plugin will run
214+ `vectorcode update` on startup to update the embeddings; - `lsp ` if `true` , the
215+ plugin will try to start the LSP server on startup so that you won’t need to
216+ wait for the server loading when making your first request. -
202217`sync_log_env_var``boolean ` . If true, this plugin will automatically set the
203218`VECTORCODE_LOG_LEVEL` environment variable for LSP or cmd processes started
204219within your neovim session when logging is turned on for this plugin. Use at
@@ -512,6 +527,11 @@ variable to a supported log level
512527The log file will be written to `stdpath (" log" )` or `stdpath (" cache" )` . On
513528Linux, this is usually `~/.local/state/nvim/ ` .
514529
530+ ==============================================================================
531+ 2. Links *VectorCode-links*
532+
533+ 1. *@sarahec*:
534+
515535Generated by panvimdoc <https://github.com/kdheepak/panvimdoc >
516536
517537vim:tw=78:ts=8:noet:ft=help:norl:
0 commit comments