I am trying to install rust-analyzer and use it with nvim. I followed the doc here, and ran rustup +nightly component add rust-analyzer-preview, but I cannot find the command when I do which rust-analyzer or which rust-analyzer-preview.
If I run rustup +nightly component add rust-analyzer-preview again, I got this:
info: component 'rust-analyzer-preview' for target 'x86_64-apple-darwin' is up to date
I think I have successfully installed it, but why can't I use it command?
YMMV, but what works for me is pulling the binary straight from the release page on GitHub.
If you go that route, don't forget to execute chmod +x rust-analyzer.