A library to create language servers.
- textDocument/InlayHint
- textDocument/documentLink
- textDocument/publishDiagnostics
- textDocument/hover
- textDocument/completion
graph LR
code(source code) --> |tree-sitter| AST --> |jq| json1[JSON with node text]
---> |JSON schema| path[error node JSON path] --> range[error node range]
AST --> |jq| json2[JSON with node range] --> range --> |LSP| diagnostic(diagnostic)
graph LR
cursor[/cursor position/] --> node ---> |jq| information --> |LSP| result(completion/hover)
code(source code) --> |tree-sitter| AST --> node[cursor node]