https://github.com/tachyons/zed-gitlab-duo
https://github.com/tachyons/zed-gitlab-duo
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/tachyons/zed-gitlab-duo
- Owner: tachyons
- Created: 2024-10-12T11:41:58.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2026-01-25T14:10:54.000Z (6 months ago)
- Last Synced: 2026-01-26T06:39:24.853Z (6 months ago)
- Language: Rust
- Size: 435 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
## Gitlab Duo integration for ZED with LSP
### Setup
Install rust
```
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
```
Install npx
```
npm install -g npx
git clone
```
Open Zed -> Extensions -> Install Dev extension -> Pick Downloaded path
Then in add configuration in settings
```json
{
"lsp": {
"gitlab-duo": {
"settings": {
"baseUrl": "https://gitlab.com",
// Generate from https://gitlab.com/-/user_settings/personal_access_tokens
// (or the equivalent URL of your Gitlab instance)
// with scopes: api, ai_features
"token": "glpat-"
}
}
}
}
```
### Use
> [!IMPORTANT]
> Gitlab Duo support is implemented as a
> [LSP](https://zed.dev/docs/extensions/languages#language-servers),
> and experimental [ACP](https://zed.dev/docs/extensions/agent-servers).

For GitLab duo agent, the token need to be set as the env var `GITLAB_AUTH_TOKEN` or in the config file
```
~/.config/gitlab-duo-acp/config.yml
```
```yaml
gitlab_auth_token: glpat-xxxx
```
Open some file and start coding. Duo will start providing suggestions automatically.
You can ask Duo to display suggestions by running the `editor: show completions`
action from the command pallette (usually bound to Ctrl+Space).