docs: add example to having two repositories in config.toml (#599)

* docs: add example to having two repositories in config.toml

#596

* Update configuration.md
r0.4
Meng Zhang 2023-10-19 15:14:02 -07:00 committed by GitHub
parent 257dba64a5
commit 7877d300ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -11,9 +11,13 @@ Tabby server will look for a configuration file at `~/.tabby/config.toml` for ad
To enable repository level context for code completion, you can add the following to your configuration file:
```toml title="~/.tabby/config.toml"
# Index `tabby` source code as additional context for code completion.
# Index two repositories' source code as additional context for code completion.
[[repositories]]
git_url = "https://github.com/TabbyML/tabby.git"
[[repositories]]
git_url = "https://github.com/OpenNMT/CTranslate2.git"
```
Once this is set, you can run `tabby scheduler` to index the source code repository.