Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I gave it a try out of curiosity with Rust, which you might reasonably expect to be well supported. But it didn't start a language server. So I followed the docs to find out how and was none the wiser. A tad undercooked, I'd say.


Make sure you have rust-analyzer installed, and check `hx --health` to see that Helix finds it.

Not sure if this is still necessary, but I needed this workaround in ~/.config/helix/languages.toml:

    language-server = { command = "rustup", args = ["run", "nightly", "rust-analyzer"]}
This should not be necessary when rust-analyzer is stabilized (may be already), but last time I tried it still needed nightly.


Thanks. Hadn't realised I needed to have the lsp server binary on the path. I think nvim-lspconfig takes care of that for me in nvim.

From a brief experiment basic lsp usage seems to work in helix without any config changes, so perhaps that's changed since you set it up.


I'm sure that nvim-lspconfig doesn't take care of installing binaries for LSP servers like this. You either set the path to the binary in your config, or you are using another neovom plugin to make sure LSP server binaries are installed


No you're right it was mason, which installs lsp servers to a location it manages. I had set it up once and then forgotten. The complexity of all the interacting packages needed with neovim does add to helix's appeal.


The language server should work by just having rust-analyzer in you path. You can check with 'hx --health rust'.

It also only works on Rust projects, not single files. You have to open helix with the path to the project folder for it to work.


Yep thanks that does the trick.


This, people say it's no configuration but I had no idea how to make python work, and that's even after I got l figured out I had to --install-grammars our whatever the command was.

Documentation is missing, it's a bit scattered




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: