-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Include installer for language servers #2152
Comments
An alternative approach could be to use language servers running in containers. Possible this would be easier to maintain. I found for example |
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. |
As someone who never understood LSP installation until yesterday, an installer would've been nice, but not necessary. |
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. |
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. |
Lspconfig does none of those things... |
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. |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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.
The text was updated successfully, but these errors were encountered: