A Zed extension that lets you register arbitrary LSP servers without writing custom extension code.
- Edit
extension.tomlto add your LSP server under[language_servers.*]:
[language_servers.taplo]
name = "taplo"
language = "TOML"
[language_servers.tsgo]
name = "tsgo"
languages = ["TypeScript", "JavaScript", "TSX"]Each entry requires:
name— the binary name (used as the LSP server ID)language/languages— one or more language scopes to associate
- Reimport the extension in Zed (
zed: extensions→ find LSP Addon → reinstall or reload). - Ensure the LSP server binary is installed and available on your system.
- Configure it in your Zed settings (
~/.config/zed/settings.json) as needed:
{
"lsp": {
"tsgo": {
"binary": {
"path": "~/.local/bin/tsgo",
"arguments": ["--lsp", "--stdio"]
}
}
}
}The LSP server ID in settings must match the name field in extension.toml. After these steps, the language selector in Zed will recognize the new LSP server for the associated languages.
You can put it to ~/.local/share/zed/extensions/installed/lspaddon/ to install it or the button in zed install dev extension to install it
and edit ~/.local/share/zed/extensions/installed/lspaddon/extension.toml to extend allowed lsp servers