rust-analyzer no worky #351
Replies: 1 comment
-
|
Yes you have to install the rust LSP to make the rust LSP work (and it likes to be from the same toolchain as the project) Luckily rustaceanvim handles the entire neovim side of things. Personally I use fenix to install the rust toolchain so that I don't need to manually run rustup but there are other ways as well. fenix.url = "github:nix-community/fenix";And then in my lspsAndRuntimeDeps inputs.fenix.packages.${pkgs.system}.latest.toolchainAnd then because (by default) these things are suffixed to the path rather than prefixed, if I enter a dev shell with a different rust it will use that one instead, but I can have a default one installed in my nixCats using fenix. All my dev shells use fenix but theyre probably different versions lol and this way I don't worry about that. Otherwise, yeah you have to manually run rustup which is annoying. You need to use something to run rustup via nix, like fenix. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
It only works when I also add the rust-analyzer component using rustup
Beta Was this translation helpful? Give feedback.
All reactions