← All extensions

GN

v1.4.0 · by Dora Lee · added 3 November 2026

GN language support with syntax highlighting and gn-language-server integration.

LanguagesLanguage servers

How to install

With Forge Super installed, the button above opens the app on this extension, where you press Install. Nothing is installed until you do.

You can also open the Extensions panel in the app and search for GN. The extension's id is gn.

Don't have Forge Super yet? Download it here.

README

From the extension's repository, written by its authors and not by Mentenaz. See the source.

GN for Zed

GN language support for Zed, backed by google/gn-language-server and tree-sitter-grammars/tree-sitter-gn.

Features

  • .gn, BUILD.gn, and .gni language detection
  • Tree-sitter highlighting, brackets, indentation, and outline queries
  • gn-language-server integration
  • PATH or user-configured binary support before automatic download
  • Automatic binary download for macOS arm64/x64 and Windows x64

Local Development

Install it from Zed with zed: install dev extension, then select this directory.

The extension first checks Zed settings, then PATH, then downloads a matching binary from the latest google/gn-language-server release.

{
  "lsp": {
    "gn-language-server": {
      "binary": {
        "path": "/absolute/path/to/gn-language-server",
        "arguments": ["--stdio"]
      },
      "settings": {
        "backgroundIndexing": true,
        "errorReporting": true,
        "parallelIndexing": true,
        "targetLens": true,
        "workspaceCompletion": true
      }
    }
  }
}

Zed does not expose the VS Code custom commands used by the upstream extension, so this extension initializes the language server with vscode_extension: false.

License

Apache-2.0