Skip to content

Editor integration

The ligls binary implements the Language Server Protocol over standard input and output. Build it from the compiler repository:

bash
cargo build -p ligls --release

Configure the editor's Ligare language client to launch:

text
/absolute/path/to/ligare/target/release/ligls

The process environment must also contain the same standard-library path used by the compiler:

bash
LIGARE_STD_PATH=/absolute/path/to/ligare/libs/std

The server provides diagnostics, formatting, semantic tokens, completion, and navigation for the parts of the language supported by the current compiler. Because it uses the compiler's module and standard-library discovery, a workspace opened in the editor should be checked with the same ligare.toml and environment.