Whim Language Support
Language support for Whim.
How to install
With Forge Super installed, the button above opens the app on this extension, where you press Install. Nothing is installed until you do.
You can also open the Extensions panel in the app and search for Whim Language Support. The extension's id is whim-lang.
Don't have Forge Super yet? Download it here.
README
From the extension's repository, written by its authors and not by Mentenaz. See the source.
Whim Language Support for Zed
Language support for Whim in Zed.
The extension:
- Recognizes
.whimfiles and Whim shebangs. - Highlights keywords through tree-sitter-whim.
- Starts the language server built into the
whimcommand. - Provides semantic highlighting, completion, snippets, formatting, folding, selection ranges, and occurrence highlighting through the language server.
Requirements
Install Whim, then make sure whim is on the PATH inherited by Zed. The
extension does not download or bundle Whim.
Semantic highlighting
Zed disables language-server semantic tokens by default. Add this to your Zed settings for full Whim highlighting:
{
"languages": {
"Whim": {
"semantic_tokens": "full"
}
}
}
Without this setting, the Tree-sitter grammar still highlights Whim keywords.
Development
Install Rust and the wasm32-wasip2 target, then run:
cargo fmt --all --check
cargo clippy --locked --all-targets -- -D warnings
cargo test --locked
cargo build --locked --release --target wasm32-wasip2
To test the extension in Zed, open the Extensions page, choose
Install Dev Extension, and select this repository.
License
Whim for Zed is available under the MIT License.