leekscript-lsp 0.1.0

Language server for LeekScript (LSP)
Documentation

leekscript-lsp

Language server for LeekScript. Provides syntax highlighting only via LSP semantic tokens.

Build

From the workspace root:

cargo build -p leekscript-lsp

Run

The server talks LSP over stdio. Configure your editor to run the leekscript-lsp binary as the language server for .leek files.

VS Code

  1. Install the "LeekScript" extension or use a generic LSP client.
  2. Set the server command to the path of leekscript-lsp (e.g. target/debug/leekscript-lsp).

Other editors

Point your LSP client at the leekscript-lsp executable. The server supports:

  • textDocument/didOpen, didChange, didClose — incremental text sync; parses on open/change for semantic tokens.
  • textDocument/semanticTokens/full — semantic tokens for the whole document (syntax highlighting).
  • textDocument/semanticTokens/range — semantic tokens for a range (e.g. visible region).

Configuration

Configure via workspace settings or initializationOptions under the leekscript key. Example:

{
  "leekscript": {
    "trace": false
  }
}
Option Description Default
trace Send verbose (LOG) messages for each request to the LSP output. false