Skip to content

Repository files navigation

Smithy for Zed

Smithy language support for the Zed editor.

This extension is built on top of the original zed-smithy by Josh Rutkowski, extended with full language server support.

Features

  • Syntax highlighting via tree-sitter
  • Go-to-definition (Cmd+Click)
  • Find references
  • Completions
  • Hover documentation
  • Diagnostics
  • Rename
  • Formatting
  • Auto-imports
  • Document symbols / outline
  • Code folding
  • Inlay hints

Requirements

The extension downloads smithy-language-server automatically on first use. No manual installation needed.

The language server ships with a bundled JVM (version 0.7.0+), so no separate Java installation is required.

Usage

Open any .smithy file. The language server starts automatically and downloads itself if not already present.

For cross-file features (go-to-definition across files, completions from other namespaces), open a folder that contains a smithy-build.json at its root.

Minimal smithy-build.json:

{
    "version": "1.0",
    "sources": ["path/to/models"]
}

Credits

License

Apache-2.0

About

Smithy Language Support for Zed

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages