New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Heex support #5822
Comments
|
I can't speak for Surface UI / embedded languages in sigils, but I'm pretty sure that there's support for |
|
Dived a bit deeper into this because I really want to be able to do front end work in Zed 😀 Here's the default file extensions from ElxiirLS - https://github.com/elixir-lsp/elixir-ls/blob/7ed5cdd86f102c232c824ceec37937270f2e87e2/apps/language_server/lib/language_server/server.ex#L79-L90 and it looks like this should be supported using default LS settings. Is there a way we can access a languages default LSP config in Zed so we can make appropriate overrides @JosephTLyons ? I looked through the docs on the website and it doesn't seem like there's a way to see which config values are available for a given language's LSP. |
Here's the HEEx grammar source for tree sitter, |
|
No joy since Nov? Might have to go back to VSCode since looking at non-highlighted sigils is starting to drive me crazy :( |
|
@noozo can you point me to an open source repository that is a Phoenix project to test things out? Preferably one that has |
|
@petros https://github.com/firezone/firezone/tree/master/apps/fz_http/lib/fz_http_web/templates/auth is an example that uses |
I don't use VSCode, but afaik, it doesn't use tree-sitter so I can't comment on anything about it. With the proper tree-sitter parser like Phoenix' heex the sigils should be highlighted. Helix editor has tree-sitter built in like Zed but it uses the proper parser |
|
Thank you @jrasanen. I have added https://github.com/phoenixframework/tree-sitter-heex which gave us the file level highlight, but I guess I need to add something to also get it to highlight sigils. 🤔 |
|
Nice to hear, perhaps Elixir-LS is also required, https://github.com/elixir-lsp/elixir-ls |
|
Here is Helix config for HEEX : I guess you need to configure the injection of HEEX grammer in ex file ? Edit : other relevant to elixir config if it can help ex iex (interactive elixir) eex (ancestor of heex) |
|
Here's what stuff looks like without and with the tree-sitter mode in Emacs using elixir-ts-mode.
|
|
"Ironically", Zed Blog mentionned how the Tree Sitter language injection works last week (Multi-language Documents paragraph) 😄 Hope we can see this implemented in the near future 🙏 |
|
Just a quick update on this. I spent some time trying to figure out the moving parts, and I reached a generally good point, but I am struggling with a formatting related error message I am getting from the language server. I know there are many folks eager to see better Elixir support (myself included 😄), but I will have to pause this for a bit. I will focus again on this soon though. |
|
Ohh, i hope you get to focus on it soon again. This is a real source of pain for me, ATM :( |
|
HEEX support should be landing in v0.91.0 - going to close this out. |








Check for existing issues
Language
Heex
Tree Sitter parser link
No response
Language server link
No response
Misc notes
Came from:
The text was updated successfully, but these errors were encountered: