zed icon indicating copy to clipboard operation
zed copied to clipboard

Docs bug "Adding New Languages" page doesn't say how to add a new language

Open frob opened this issue 11 months ago • 3 comments

Check for existing issues

  • [X] Completed

Describe the bug / provide steps to reproduce it

I was reading the docs page on Adding New Languages and, while it has some good info about LSP, it doesn't actually say anything about adding a new language. It eludes to this being possible. If this is done through extensions then that info should be added to the docs page.

Apologies if this isn't the place for Docs bugs but I couldn't find a repo for the docs.

Environment

NA

If applicable, add mockups / screenshots to help explain present your vision of the feature

No response

If applicable, attach your ~/Library/Logs/Zed/Zed.log file to this issue.

No response

frob avatar Mar 23 '24 06:03 frob

This is the page I am referring to.

https://zed.dev/docs/adding-new-languages

frob avatar Mar 23 '24 06:03 frob

Sorry about that - yeah, extensions are the way forward for adding new languages to Zed. Extensions landed not too long ago and the docs haven't been updated in some time - I'll try to update them today.

JosephTLyons avatar Mar 26 '24 18:03 JosephTLyons

I am interested in developing an extension to support the Move language in Zed, but I am currently struggling with understanding how to properly integrate it. I've looked through the existing documentation but could not find a clear guide or reference for adding support for a new language such as Move.

Could you please provide some guidance, or consider expanding the existing documentation to include a step-by-step guide on how to add new language support? Specifically, I am looking for information on integrating things like syntax highlighting via tree-sitter and connecting to a language server.

Any help or pointers would be greatly appreciated as it would significantly aid in my efforts to contribute to the community.

ChzenChzen avatar May 10 '24 15:05 ChzenChzen

Another question has come up regarding LSP configuration. How does someone change the LSP used for a language

frob avatar May 31 '24 18:05 frob

I am interested in developing an extension to support the Move language in Zed, but I am currently struggling with understanding how to properly integrate it. I've looked through the existing documentation but could not find a clear guide or reference for adding support for a new language such as Move.

Could you please provide some guidance, or consider expanding the existing documentation to include a step-by-step guide on how to add new language support? Specifically, I am looking for information on integrating things like syntax highlighting via tree-sitter and connecting to a language server.

Any help or pointers would be greatly appreciated as it would significantly aid in my efforts to contribute to the community.

Hello, I'm trying to add Move language on Zed too, but met same as your problem. Did you have any new information about this?

LI-YONG-QI avatar Jun 13 '24 06:06 LI-YONG-QI

@LI-YONG-QI nope =(

ChzenChzen avatar Jun 21 '24 05:06 ChzenChzen

Sorry about that - yeah, extensions are the way forward for adding new languages to Zed. Extensions landed not too long ago and the docs haven't been updated in some time - I'll try to update them today.

any news?

artemavrin avatar Jul 15 '24 10:07 artemavrin