A Zed extension for the Andromeda JavaScript and TypeScript runtime.
- Enhanced JavaScript/TypeScript Support: Advanced linting, auto-completion, and formatting
- Web API Integration: Built-in support for Canvas, Crypto, and other web APIs
- Auto-fix Code Actions: Automatically fix common issues
- Real-time Diagnostics: Get instant feedback as you type
- Hover Documentation: Rich documentation on hover
- Smart Completions: Context-aware code completion
- Open Zed
- Open the command palette (
Cmd+Shift+P
/Ctrl+Shift+P
) - Run
zed: extensions
- Search for "Andromeda"
- Click "Install"
To use the Andromeda Language Server with JavaScript and TypeScript files, add the following to your Zed settings:
{
"lsp": {
"andromeda": {
"settings": {
"andromeda": {
"enable": true,
"run": "onType",
"format": {
"enable": true
},
"codeAction": {
"autoFix": {
"enable": true
}
},
"completion": {
"enable": true
},
"hover": {
"enable": true
}
}
}
}
},
"languages": {
"JavaScript": {
"language_servers": [
"andromeda",
"!typescript-language-server",
"!vtsls",
"!eslint"
],
"formatter": "language_server"
},
"TypeScript": {
"language_servers": [
"andromeda",
"!typescript-language-server",
"!vtsls",
"!eslint"
],
"formatter": "language_server"
}
}
}
This extension uses the Andromeda Language Server, which provides:
- Advanced static analysis for JavaScript and TypeScript
- Web API specific completions and validations
- Performance-focused linting rules
- Modern ECMAScript feature support
The extension will automatically download and install the Andromeda binary when first used. If you prefer to use a system-installed version, ensure andromeda
is available in your PATH.
To install Andromeda manually, visit: https://github.com/tryandromeda/andromeda#installation
To develop this extension locally:
- Clone this repository
- Install Rust via rustup
- Open Zed and go to
zed: extensions
- Click "Install Dev Extension" and select this directory
For issues and feature requests, please visit:
- Extension issues: https://github.com/tryandromeda/vscode/issues
- Andromeda core issues: https://github.com/tryandromeda/andromeda/issues
This extension is licensed under the Apache 2.0 License.