Skip to content

Repository files navigation

Whim Language Support for Zed

CI

Language support for Whim in Zed.

The extension:

  • Recognizes .whim files and Whim shebangs.
  • Highlights keywords through tree-sitter-whim.
  • Starts the language server built into the whim command.
  • 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.

About

Language support for Whim in Zed.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages