Hacker News new | ask | show | jobs
by mstade 487 days ago
> - You can only run one LSP per file type, so your Rust will work fine, your C++, too, your Angular will not.

As a web developer that's an immediate deal breaker. I use Sublime today and being able to run multiple LSP servers per file is a huge boon, it turns a very capable text editor into a total powerhouse. The way it's set up in Sublime with configuration options that can be applied very broadly or very specifically, while having defaults that just works is also just incredible.

While I'm super pleased with Sublime and a happy paying customer since at least a decade, and at this rate may well be for another decase, I'm always keeping my ear to the ground for other editors if nothing else just to stay current. Zed's been looking pretty cool, but things like this will keep me from even just trying it. There's years of muscle memory and momentum built up in my editor choice, I'm not switching on whim.

Thank you very much for sharing this nugget of gold!

1 comments

I'm not a regular Zed user, but this isn't true: I simultaneously ran the Ruff and Pyright LSPs when I used it last week.
In the same file?
You can run multiple LSPs on the same file.

In my currently opened project I have: vtsls (for typescript), biome, emmet, and the snippets LSP running on the same file.

You can configure which LSPs you can run on a language basis. Globally and per project. You can also configure the format on save actions the same way. Globally and per project.

I have astro project that on save runs biome for the front-matter part followed by prettier for the rest.

I would say that's pretty flexible.