Skip to content

Latest commit

 

History

History
39 lines (31 loc) · 979 Bytes

README.md

File metadata and controls

39 lines (31 loc) · 979 Bytes

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 for LSP functionality, if it is 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,
  }
}