|
1 | 1 | # Lua API References |
2 | 2 |
|
3 | | -This plugin provides 2 sets of high-level APIs that provides similar functionalities. The |
| 3 | +This plugin provides 2 sets of _high-level APIs_ that provides similar functionalities. The |
4 | 4 | synchronous APIs provide more up-to-date retrieval results at the cost of |
5 | 5 | blocking the main neovim UI, while the async APIs use a caching mechanism to |
6 | 6 | provide asynchronous retrieval results almost instantaneously, but the result |
7 | 7 | may be slightly out-of-date. For some tasks like chat, the main UI being |
8 | 8 | blocked/frozen doesn't hurt much because you spend the time waiting for response |
9 | 9 | anyway, and you can use the synchronous API in this case. For other tasks like |
10 | | -completion, the async API will minimise the interruption to your workflow. |
| 10 | +completion, the cached API will minimise the interruption to your workflow, but |
| 11 | +at a cost of providing less up-to-date results. |
11 | 12 |
|
12 | | -These APIs are wrappers around the lower-level |
13 | | -[job runner API](https://github.com/Davidyz/VectorCode/tree/main/lua/vectorcode/jobrunner), |
| 13 | +These APIs are wrappers around the _lower-level |
| 14 | +[job runner API](https://github.com/Davidyz/VectorCode/tree/main/lua/vectorcode/jobrunner)_, |
14 | 15 | which provides a unified interface for calling VectorCode commands that can be |
15 | 16 | executed by either the LSP or the generic CLI backend. If the high-level APIs |
16 | | -are sufficient for your usecase, it's usually not necessary to use the job |
| 17 | +are sufficient for your use-case, it's usually not necessary to use the job |
17 | 18 | runners directly. |
18 | 19 |
|
19 | 20 | <!-- mtoc-start --> |
|
0 commit comments