Zig toolchain management and ZLS integration for Zed.
- Auto-install Zig and ZLS with minisign verification
- ZLS configuration passthrough via Zed
lsp.zlssettings - Zig language definition + Tree-sitter queries
- Zig run/test tasks and debug locators
- Works with Zig release and dev builds
- "Zinc: Refresh toolchain cache" creates a
.zinc-refreshmarker in the worktree. Restart ZLS to apply.
This extension reads its configuration from Zed’s lsp.zls.settings under a zinc_zig object:
{
"lsp": {
"zls": {
"settings": {
"zinc_zig": {
"zig_path": "/path/to/zig",
"zig_version": "0.14.1",
"zls_path": "/path/to/zls",
"zls_enabled": "on"
}
}
}
}
}Notes:
zig_pathmirrorszig.pathfrom the VS Code Zig extension.zig_versionmirrorszig.versionand overrides.zigversion/build.zig.zon.zls_pathmirrorszig.zls.pathfrom the VS Code Zig extension.zls_enabled:onoroff(defaults to auto-install if unset).
ZLS runtime settings should go directly under lsp.zls.settings (e.g. zig_exe_path, inlay hints, etc.).
To allow downloads and command execution, enable these capabilities in Zed:
{
"granted_extension_capabilities": [
{ "kind": "process:exec", "command": "*", "args": ["version"] },
{ "kind": "process:exec", "command": "*", "args": ["--version"] },
{ "kind": "download_file", "host": "*", "path": ["**"] }
]
}Install as a dev extension from this repo root. Build requires Rust via rustup.