Hacker News new | ask | show | jobs
by TonyStr 45 days ago
I don't use zed or svelte, but this looks like the zed picture is missing a treesitter parser for svelte. Many editors have basic regex-based highlighting for many languages, and optional, more advanced, highlighting available through extensions. You may also get some semantic highlights provided by a language server if your editor uses the Language Server Protocol as well.

I found one extension from a web search. Did you try this? https://zed.dev/extensions/svelte

1 comments

It's been a while, but from what I remember you need that extension for any highlighting at all, and that screenshot is with it installed. Also, if I recall, it's something about that extension using an outdated treesitter parser or something along those lines.
Sounds to me like one major Zed enhancement should be to suggest plugins if you open specific programming language files...
It does this, but only for a couple dozen file extensions -- .svelte is one of them.

https://github.com/zed-industries/zed/blob/c8f09caee42ea4e27...