zed-crystal 0.0.4

Crystal Lang Support for Zed

Uses the Crystal lang tree-sitter found at crystal-lang-tools/tree-sitter-crystal, which is mostly complete, and can parse the majority of Crystal's own source code without errors.

Also uses Crystalline and ameba-ls for LSP functionality, if they're available in $PATH.

Extension Settings

To use the Crystal formatter directly instead of using the language server for formatting—for example, if a language server isn't available—copy the following into Zed's settings file:

"languages": {
  "Crystal": {
    "formatter": {
      "external": {
        "command": "crystal",
        "arguments": [
          "tool",
          "format",
          "-"
        ]
      }
    }
  }
}

To disable Crystalline, copy the following:

"languages": {
  "Crystal": {
    "enable_language_server": false,
  }
}
Repository

zed-crystal

Owner
Statistic
  • 29
  • 4
  • 5
  • 0
  • 0
  • 7 days ago
  • May 14, 2024
License

Links
Synced at

Tue, 01 Apr 2025 12:24:55 GMT

Languages