https://github.com/zaucy/zed-starlark
Zed Starlark Extension
https://github.com/zaucy/zed-starlark
Last synced: 6 months ago
JSON representation
Zed Starlark Extension
- Host: GitHub
- URL: https://github.com/zaucy/zed-starlark
- Owner: zaucy
- License: mit
- Created: 2024-03-25T21:12:12.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-07-01T21:30:13.000Z (about 1 year ago)
- Last Synced: 2025-07-01T22:27:44.111Z (about 1 year ago)
- Language: Rust
- Homepage:
- Size: 50.8 KB
- Stars: 19
- Watchers: 3
- Forks: 11
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome-zed-extensions - Starlark
README
# Starlark / Bazel support for Zed
* [Starpls](https://github.com/withered-magic/starpls) LSP for starlark, bazel, and buck files.
* [Buck2](https://buck2.build/) LSP for buck files.
* Tree sitter syntax for [starlark](https://github.com/tree-sitter-grammars/tree-sitter-starlark) _and_ [bazelrc](https://github.com/zaucy/tree-sitter-bazelrc) files
* [Tilt](https://tilt.dev/) LSP for Tiltfiles.
## Configure the LSP
By default, the extension only loads the Starpls LSP. If your project uses Buck2 or Tilt, you must manually enable the corresponding LSP in your zed settings
To use buck2:
```json
{
"languages": {
"Starlark": {
"language_servers": ["buck2-lsp", "!starpls", "!tilt"]
}
}
}
```
To use tilt:
```json
{
"languages": {
"Starlark": {
"language_servers": ["tilt", "!starpls", "!buck2-lsp"]
}
}
}
```