Squirrel Language Extension for Zed
This extension provides Squirrel language support for the Zed editor, including:
- Syntax highlighting via tree-sitter
- Language Server Protocol (LSP) support via squirrel-lsp
- Code formatting, diagnostics, and code actions
Installation
From Zed Extensions (recommended)
- Open Zed
- Go to Extensions (Cmd+Shift+X)
- Search for "Squirrel"
- Click Install
The LSP binary will be downloaded automatically from GitHub releases.
Manual LSP Installation
If you prefer to install the LSP manually or need a custom build:
cargo install --git https://github.com/mnshdw/squirrel-lspThe extension will use a manually installed squirrel-lsp from PATH if available.
Configuration
You can configure the extension in your Zed settings (~/.config/zed/settings.json):
{
"languages": {
"Squirrel": {
"tab_size": 4
}
},
"lsp": {
"squirrel-lsp": {
"binary": {
"path": "/custom/path/to/squirrel-lsp"
}
}
}
}Development
To build the extension locally:
cargo build --release --target wasm32-wasip1To test as a dev extension:
- Open Zed
- Command palette → "zed: install dev extension"
- Select this repository's root directory