mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-25 20:43:21 +00:00
parent
1140a83c1b
commit
54e92e699c
1 changed files with 3 additions and 1 deletions
|
@ -130,7 +130,7 @@ Installation:
|
|||
|
||||
```json
|
||||
"rust-analyzer": {
|
||||
"command": ["rustup", "run", "stable", "ra_lsp_server"],
|
||||
"command": ["ra_lsp_server"],
|
||||
"languageId": "rust",
|
||||
"scopes": ["source.rust"],
|
||||
"syntaxes": [
|
||||
|
@ -141,3 +141,5 @@ Installation:
|
|||
```
|
||||
|
||||
* You can now invoke the command palette and type LSP enable to locally/globally enable the rust-analyzer LSP (type LSP enable, then choose either locally or globally, then select rust-analyzer)
|
||||
|
||||
* Note that `ra_lsp_server` binary must be in `$PATH` for this to work. If it's not the case, you can specify full path to the binary, which is typically `.cargo/bin/ra_lsp_server`.
|
||||
|
|
Loading…
Reference in a new issue