News for hackers. Stuff that matters.
Re:Helix: A Neovim inspired editor, written in Rust by aussiesnack on Monday October 10, 2022 @02:57AM (#33148572)
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.
Re:Helix: A Neovim inspired editor, written in Rust by Acur on Monday October 10, 2022 @03:26AM (#33148718)
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.

Re:Helix: A Neovim inspired editor, written in Rust by aussiesnack on Monday October 10, 2022 @06:47AM (#33149846)
Yep thanks that does the trick.
Re:Helix: A Neovim inspired editor, written in Rust by drekipus on Monday October 10, 2022 @05:22AM (#33149398)
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

Re:Helix: A Neovim inspired editor, written in Rust by exDM69 on Monday October 10, 2022 @06:03AM (#33149602)
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.
Re:Helix: A Neovim inspired editor, written in Rust by aussiesnack on Monday October 10, 2022 @06:49AM (#33149865)
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.

Re:Helix: A Neovim inspired editor, written in Rust by davidatbu on Tuesday October 11, 2022 @12:29AM (#33159540)
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
Re:Helix: A Neovim inspired editor, written in Rust by aussiesnack on Tuesday October 11, 2022 @02:05AM (#33159997)
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.