Expand description
§styx-lsp
Language server for the Styx configuration language. Provides IDE features like diagnostics, completions, hover information, and formatting.
§Sponsors
Thanks to all individual sponsors:
…along with corporate sponsors:
…without whom this work could not exist.
§License
Licensed under either of:
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
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§
- Document
State - Document state tracked by the server
Functions§
- run
- Run the LSP server on stdin/stdout
Type Aliases§
- Document
Map - Shared document map type