Yulang for Zed
Yulang language support for Zed.
This extension provides syntax highlighting through the tree-sitter-yulang
grammar and starts the Yulang language server from the active Zed worktree
environment.
Language Server
The language server ships inside the main yulang binary. Install a release
binary first:
curl -fsSL https://yulang.momota.pw/install.sh | sh
# Or pin a specific release instead:
curl -fsSL https://yulang.momota.pw/install.sh | sh -s -- --version v0.1.0-alpha.10The extension searches the active worktree environment, then invokes
yulang server. It does not bundle a language server binary yet.
You can override the command from Zed settings:
{
"lsp": {
"yulang": {
"binary": {
"path": "/home/me/.yulang/bin/yulang",
"arguments": ["server"]
}
}
}
}Semantic Highlighting
Zed keeps tree-sitter highlighting and language-server semantic highlighting
as separate settings. For editing, prefer "combined" so tree-sitter colors
remain visible while Zed is waiting for refreshed language-server semantic
tokens:
{
"languages": {
"Yulang": {
"semantic_tokens": "combined"
}
}
}Use "full" only when you want to inspect the language-server semantic colors
without the tree-sitter baseline underneath.