From 0414d5e872ccadebc5dcc04939824f921682f59a Mon Sep 17 00:00:00 2001 From: pommicket Date: Sun, 24 Sep 2023 11:05:20 -0400 Subject: update rust-analyzer installation instructions --- README.md | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index bf957ae..f31dae8 100644 --- a/README.md +++ b/README.md @@ -231,18 +231,12 @@ You can download it [here](https://github.com/python-lsp/python-lsp-server). ### Rust -`rust-analyzer` is enabled by default. You can download it -by following [the instructions here](https://rust-analyzer.github.io/manual.html#rust-analyzer-language-server-binary). -On Linux you can install it with: +`rust-analyzer` is enabled by default. You can install it with: -```bash -mkdir -p ~/.local/bin -curl -L https://github.com/rust-lang/rust-analyzer/releases/latest/download/rust-analyzer-x86_64-unknown-linux-gnu.gz | gunzip -c - > ~/.local/bin/rust-analyzer -chmod +x ~/.local/bin/rust-analyzer +```sh +rustup component add rust-analyzer ``` -(Assuming `~/.local/bin` is in your PATH.) - ## Tags (lightweight LSP alternative) If an LSP is too much for you, you can also use [ctags](https://github.com/universal-ctags/ctags) -- cgit v1.2.3