Crate styx_lsp

Crate styx_lsp 

Source
Expand description

§styx-lsp

crates.io documentation MIT/Apache-2.0 licensed

Language server for the Styx configuration language. Provides IDE features like diagnostics, completions, hover information, and formatting.

§Sponsors

Thanks to all individual sponsors:

GitHub Sponsors Patreon

…along with corporate sponsors:

AWS Zed Depot

…without whom this work could not exist.

§License

Licensed under either of:

at your option. Styx Language Server

LSP server for the Styx configuration language, providing:

  • Semantic highlighting (schema-aware)
  • Diagnostics (parse errors, validation errors)
  • Completions (keys, values, tags from schema)
  • Hover information (type info from schema)
  • Schema suggestions for known file patterns

Re-exports§

pub use semantic_tokens::HighlightSpan;
pub use semantic_tokens::TokenType;
pub use semantic_tokens::compute_highlight_spans;

Modules§

cache
Schema cache for the LSP.
config
User configuration for the Styx LSP.
extensions
LSP extension management.
schema_hints
Schema hints registry for suggesting schemas based on file paths.
semantic_tokens
Semantic token computation for syntax highlighting
testing
Integration test harness and runner for LSP extensions.

Structs§

DocumentState
Document state tracked by the server

Functions§

run
Run the LSP server on stdin/stdout

Type Aliases§

DocumentMap
Shared document map type