Klar logoklaralpha

Language Server (LSP)

Klar ships an LSP server binary: klar-lsp.

Features

  • Parse and type-check diagnostics
  • Hover info
  • Completions
  • Go-to-definition (file-local)

Build and Run

cd compiler
cargo build -p klar-lsp
cargo run -p klar-lsp

The server uses stdio transport (standard LSP setup).

Editor Integration

Configure your editor client to launch:

<repo>/compiler/target/debug/klar-lsp

for Klar files.

Related Docs