Would it be possible for End Users to add their own support for new languages? #6617
-
It would be nice for the community to be able to provide support for languages that aren't baked into Zed. Ideally, this could take the form of a DSL based on the Parsing Expression Grammar formalism and an optional preference setting to point Zed to a corresponding Language Server Protocol based Language Server if one exists. Alternatively, could Zed:
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
I don't work for Zed, but I think I could answer this.
|
Beta Was this translation helpful? Give feedback.
-
I think the first step would be the ability to use custom language server. I really like |
Beta Was this translation helpful? Give feedback.
-
I think the easiest, bare-minimum improvement would be to add a tree-sitter grammar to support things like graphql |
Beta Was this translation helpful? Give feedback.
-
Lots has changed with Zed since October 2023 -- Zed is open source and allows extensions. What document(s) are good starting points for adding (1) a new grammar; (2) a new extension with a grammar; (3) a new extension with a custom LSP? (Sorry if this three-way split is inaccurate; it is based loosely on how VS Code does it; please correct me.) |
Beta Was this translation helpful? Give feedback.
Lots has changed with Zed since October 2023 -- Zed is open source and allows extensions. What document(s) are good starting points for adding (1) a new grammar; (2) a new extension with a grammar; (3) a new extension with a custom LSP? (Sorry if this three-way split is inaccurate; it is based loosely on how VS Code does it; please correct me.)