Skip to content

Type to search extensions

Awsum

v0.0.7

Awsum language support for Zed: syntax highlighting, format on save, diagnostics, quick fixes, document/workspace symbols. Backed by the bundled `awsum lsp` language server (one binary, lockstep with the compiler — see https://github.com/awsum-lang/awsum).

Updated 5 months ago
209 downloads 1 star Repository ↗

Awsum for Zed

Zed extension for the Awsum programming language (.aww files).

Features

  • Syntax highlighting (Tree-sitter)
  • Formatting (editor: format; on save once enabled — see Format on save)
  • Inline diagnostics (errors + warnings)
  • Quick fixes (lightbulb code actions)
  • Hover: type and doc comment of the name under the cursor
  • Document outline / breadcrumbs
  • Workspace symbol search (Cmd+T / Ctrl+T)

All of the above are powered by the awsum compiler's bundled language server — there is no separate awsum-lsp to install. As long as the awsum binary is on your PATH, the extension will spawn it as awsum lsp and route every editor request through it.

Install

  1. Install the Awsum compiler (see awsum-lang/awsum) and ensure awsum is on your PATH.
  2. Open Zed → Cmd+Shift+P → zed: extensions → search "Awsum" → Install.

Format on save

Zed turns format-on-save on only for the languages listed in its own default settings, and an extension cannot add itself to that list. To format .aww files on save, enable it for Awsum in your Zed settings.json:

{
  "languages": {
    "Awsum": { "format_on_save": "on" }
  }
}

Formatting runs the same algorithm as awsum format.

Restart the LSP server

Use Zed's built-in command:

zed: command palette → editor: restart language server

Stops the awsum lsp process for the active buffer and starts a new one with the same settings. Useful after a local stack install of a new awsum build, or to clear any in-memory state on the server. (The Zed extension API does not allow extensions to register editor commands, so awsum-zed rides Zed's built-in restart command rather than adding its own).

Versioning

awsum-zed A.B.C is built and tested against awsum A.B.C. Mismatched versions are not supported — at startup the language server compares the extension's expected version against its own and shows a Zed notification on mismatch.

Supported editor versions follow Awsum's platform version policy: the minimum is the newest stable release that has been out for at least 7 days.

AI use

This Zed extension is developed with substantial usage of generative AI.

License

Apache 2.0 — see LICENSE and NOTICE.