Helix seems to run all available language server #15870
Unanswered
lalala-233
asked this question in
Q&A
Replies: 1 comment 1 reply
|
This is intentional so that you can run multiple language servers with different capabilities. There are some languages like Python where we have a few competing language servers and selecting the first available might make sense. But the current behavior should be kept as default. The original point of the language-servers key being an array is that you should be able to run multiple language servers at once on one document. |
1 reply
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.
For example, I have installed
marksmanandmarkdown-oxide.Then, when I open a markdown file, helix will start two language servers, instead of the first one in languages.toml.
It is also mentioned in some issues, like #12153.
I think it's better to run the first available language-server if users don't specify it.
It also allows us to support more lsp without requiring user to edit
~/.config/helix/languages.tomlOfficial document metioned that
It's usually to compose different features from different language-server, but I think it's better to specify to use more than one lsp explicitly instead of by default.
But changing default behaviour may break something, though, I think this change will not break anything unless someone rely on it (people ususally use only one lsp at one time, right?).
An possible way is to provide a flag field to control if you'd like to start all lsp. Another way is to provide a field to specify fallback lsp if default lsp is not available.
Did you like this idea? I'd like to create a pr.
All reactions