Skip to content

Commit cf6381f

Browse files
authored
docs: Readme updates (#233)
* docs(nvim): Add instructions for mason installation * Auto generate docs * docs: Update credits and add nix community * docs(nvim): Clarify lazy-loading behavior for LSP server startup * Auto generate docs --------- Co-authored-by: Davidyz <Davidyz@users.noreply.github.com>
1 parent 681b85f commit cf6381f

3 files changed

Lines changed: 31 additions & 12 deletions

File tree

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,14 @@ This project follows an adapted semantic versioning:
102102

103103
## Credit
104104

105-
- Thank [@milanglacier](https://github.com/milanglacier) (and [minuet-ai.nvim](https://github.com/milanglacier/minuet-ai.nvim)) for the support when this project was still in early stage;
106-
- Thank [@olimorris](https://github.com/olimorris) for the help (personally and
105+
- [@milanglacier](https://github.com/milanglacier) (and [minuet-ai.nvim](https://github.com/milanglacier/minuet-ai.nvim)) for the support when this project was still in early stage;
106+
- [@olimorris](https://github.com/olimorris) for the help (personally and
107107
from [codecompanion.nvim](https://github.com/olimorris/codecompanion.nvim))
108108
when this project made initial attempts at tool-calling;
109-
- Thank [@ravitemer](https://github.com/ravitemer) for the help to interface
110-
VectorCode with [MCP](https://modelcontextprotocol.io/introduction).
109+
- [@ravitemer](https://github.com/ravitemer) for the help to interface
110+
VectorCode with [MCP](https://modelcontextprotocol.io/introduction);
111+
- The nix community (especially [@sarahec](https://github.com/sarahec) and [@GaetanLepage](https://github.com/GaetanLepage))
112+
for maintaining the nix packages.
111113

112114
## Star History
113115

doc/VectorCode.txt

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ Table of Contents *VectorCode-table-of-contents*
2424
both the CLI and the neovim plugin to the latest version before opening an
2525
issue.
2626
- |VectorCode-installation|
27+
- |VectorCode-mason.nvim|
2728
- |VectorCode-nix|
2829
- |VectorCode-integrations|
2930
- |VectorCode-configuration|
@@ -93,6 +94,13 @@ you can use the following plugin spec:
9394
This plugin is developed and tested on neovim _v0.11_. It may work on older
9495
versions, but I do not test on them before publishing.
9596

97+
MASON.NVIM ~
98+
99+
The VectorCode CLI and LSP server are available in `mason.nvim`. If you choose
100+
to install the CLI through mason, you may need to pay extra attention to the
101+
version pinning because the package updates on mason usually takes extra time.
102+
103+
96104
NIX ~
97105

98106
There’s a community-maintained nix package
@@ -171,13 +179,14 @@ async backend to use, currently either `"default"` or `"lsp"`. Default:
171179
`setup` is called. Supported keys: - `update`if `true`, the plugin will run
172180
`vectorcode update` on startup to update the embeddings; - `lsp`if `true`, the
173181
plugin will try to start the LSP server on startup so that you won’t need to
174-
wait for the server loading when making your first request. -
175-
`sync_log_env_var``boolean`. If true, this plugin will automatically set the
176-
`VECTORCODE_LOG_LEVEL` environment variable for LSP or cmd processes started
177-
within your neovim session when logging is turned on for this plugin. Use at
178-
caution because the non-LSP CLI write all logs to stderr, which _may_ make this
179-
plugin VERY verbose. See |VectorCode-debugging-and-logging| for details on how
180-
to turn on logging.
182+
wait for the server loading when making your first request. _Please pay extra
183+
attention on lazy-loading so that the LSP server won’t be started without a
184+
buffer to be attached to (see here)._ - `sync_log_env_var``boolean`. If true,
185+
this plugin will automatically set the `VECTORCODE_LOG_LEVEL` environment
186+
variable for LSP or cmd processes started within your neovim session when
187+
logging is turned on for this plugin. Use at caution because the non-LSP CLI
188+
write all logs to stderr, which _may_ make this plugin VERY verbose. See
189+
|VectorCode-debugging-and-logging| for details on how to turn on logging.
181190

182191
You may notice that a lot of options in `async_opts` are the same as the other
183192
options in the top-level of the main option table. This is because the

docs/neovim.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
<!-- mtoc-start -->
1313

1414
* [Installation](#installation)
15+
* [Mason.nvim ](#masonnvim-)
1516
* [Nix](#nix)
1617
* [Integrations](#integrations)
1718
* [Configuration](#configuration)
@@ -80,6 +81,12 @@ you can use the following plugin spec:
8081
> This plugin is developed and tested on neovim _v0.11_. It may work on older
8182
> versions, but I do not test on them before publishing.
8283
84+
### Mason.nvim
85+
86+
The VectorCode CLI and LSP server are available in `mason.nvim`. If you choose to
87+
install the CLI through mason, you may need to pay extra attention to the version
88+
pinning because the package updates on mason usually takes extra time.
89+
8390
### Nix
8491

8592
There's a community-maintained [nix package](https://nixpk.gs/pr-tracker.html?pr=413395)
@@ -159,7 +166,8 @@ The following are the available options for the parameter of this function:
159166
update the embeddings;
160167
- `lsp`: if `true`, the plugin will try to start the LSP server on startup so
161168
that you won't need to wait for the server loading when making your first
162-
request.
169+
request. _Please pay extra attention on lazy-loading so that the LSP server
170+
won't be started without a buffer to be attached to (see [here](https://github.com/Davidyz/VectorCode/pull/234))._
163171
- `sync_log_env_var`: `boolean`. If true, this plugin will automatically set the
164172
`VECTORCODE_LOG_LEVEL` environment variable for LSP or cmd processes started
165173
within your neovim session when logging is turned on for this plugin. Use at

0 commit comments

Comments
 (0)