Can someone please explain what's the connection between this and LSP? For example in Helix can one use this instead of various language servers?
Can someone please explain what's the connection between this and LSP? For example in Helix can one use this instead of various language servers?
Tree-sitter is merely a tool for generating an AST for a given language. LSPs on the other hand have way more capabilities (formatting, diagnostics, project-wise go to definition, inlay hints, documentation on hover, etc.) as you can see in its specification.[0] They can't really replace one another.
[0]: https://microsoft.github.io/language-server-protocol/specifi...