Replies: 8 comments 7 replies
-
An alternative approach could be to use language servers running in containers. Possible this would be easier to maintain. I found for example |
Beta Was this translation helpful? Give feedback.
-
There's a lot of different ways to install LSPs and these might even vary per platform. In some cases you install a distribution package, sometimes it's an npm package. Yet other times it's a binary you need to place in a system-specific location. This is doable when you have a scripting language available, but I'd like to avoid doing all of this in Rust. Containers could be an option if there's a good set of containers available. It's still a bit tricky because you'd have to configure them to have access to the workspace files. |
Beta Was this translation helpful? Give feedback.
-
As someone who never understood LSP installation until yesterday, an installer would've been nice, but not necessary. |
Beta Was this translation helpful? Give feedback.
-
I understand that it would be more of a chore in rust and - like a lot of features - a plugin would probably be made when plugin support is complete. I just think that built in LSP features is one of the outstanding strong points of Helix and managing it from within the editor would contribute to that. Obviously it's not necessary. Just having good docs on how to do it yourself is enough but it would be a cool thing to see. I'm not a good enough programmer to judge the scale of how tricky it would be, nevermind actually implementing it myself so feel free to close the issue if you're sure it wouldn't be worth it. |
Beta Was this translation helpful? Give feedback.
-
I might be in the minority, but I really don't like it when my text editor suddenly starts downloading, compiling, and running tons of code from all over the internet. It's one of the things that really irks me about neovim's Edit: Maybe not lspconfig, but some plugin in my neovim setup did do it. |
Beta Was this translation helpful? Give feedback.
-
Lspconfig does none of those things... |
Beta Was this translation helpful? Give feedback.
-
This wiki page https://github.com/helix-editor/helix/wiki/How-to-install-the-default-language-servers should be in the helix docs website. And the installer could just run npm commands?. Or it could be just providing information, something like when you open a file, for example, of the extension C# it says. The language server for this language needs dotnet cli, and there is the omni-sharp website for more information. |
Beta Was this translation helpful? Give feedback.
-
It is not that just language servers should be included. But also formatters and linters. The mason library on nvim does a great job for this. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I got this idea from a neovim plugin that handles the installation of language servers for you.
I understand this would be tricky to implement, but would help in making Helix more accessible to people coming from IDEs and would be a lot comfier than tracking down all the LS's yourself.
Suggestions
$ hx --language install <language>
or something, similar to grammars.:languages
for example.I'm most in favour of the latter option, built-in UI's are something that I like a lot about Helix.
Beta Was this translation helpful? Give feedback.
All reactions