What is the status of React styled components support? #26873
ddbrierton
started this conversation in
Language Support
Replies: 1 comment
-
|
Thanks to a user on Reddit I did manage to get this partially working in Neovim. The bit that I was missing was I also need to install an extra component: That gives me syntax highlighting in Neovim. So presumably something similar can be done in Zed too? However, there are still no language server completions, so this really is only a partial solution. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
There have been a couple of posts on Reddit about this, and there are a couple of open tickets on GitHub too, but I'm not clear if this is possible with some manual configuration or not.
In styled components, CSS is written inside JS template literals. But Zed doesn't recognise this, there is no syntax highlighting or code completion. TBH I could never get this to work in Neovim either, so I'm not sure if this even is a Zed issue as opposed to a tree-sitter and/or language server issue.
This is how the same code looks in VS Code.
Can this be made to work with some manual configuration? If not, does anyone understand whether the blocking point actually is with Zed, or is it a tree-sitter and/or a language server problem?
I really love Zed and am kinda desperate to switch to it completely but all our projects at work use styled components so this is a bit of a deal breaker for me, sadly.
These are the issues on GitHub:
#17026
#11143
TIA
Beta Was this translation helpful? Give feedback.
All reactions