2026-03-05 20:02:33 +06:00
..
2026-03-05 20:02:33 +06:00

Helix

1. Language & Grammar Setup

Add the following entries to your Helix ~/.config/helix/languages.toml:

[[language]]
name = "ziex"
language-id = "zx"
scope = "source.zx"
roots = ["build.zig", "zls.json", ".git"]
file-types = ["zx"]
grammar = "zx"
language-servers = ["zls-zx"]

[language-server.zls-zx]
command = "zls-zx-proxy"
args = ["zls"]

[[grammar]]
name = "zx"
source = { git = "https://github.com/ziex-dev/ziex", rev = "main", subpath = "pkg/tree-sitter-zx" }

2. Build Grammar

Fetch and build the grammar:

hx --grammar fetch
hx --grammar build

3. Copy Queries

Clone this repo, then copy the queries for zx:

cp -r ide/helix/queries/ziex/ ~/.config/helix/runtime/queries/ziex/

4. Configure LSP Proxy

The zx language server (zls) reports expected expression, found '<' for zx tags. The proxy silences this error and allows LSP features to work correctly.

Copy the proxy script:

cp ide/helix/scripts/zls-zx-proxy ~/.local/bin/zls-zx-proxy