mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 10:13:54 +00:00
Merge #3902
3902: Better Sublime Documentation r=matklad a=Elinvynia LSP by default now has the correct rust-analyzer configuration, I feel like updating it will make it less confusing for new users. Co-authored-by: Elinvynia <59487684+Elinvynia@users.noreply.github.com>
This commit is contained in:
commit
080c983498
@ -187,30 +187,7 @@ Prerequisites:
|
|||||||
|
|
||||||
`LSP` package.
|
`LSP` package.
|
||||||
|
|
||||||
Installation:
|
Invoke the command palette (`ctrl+shift+p`) 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)
|
||||||
|
|
||||||
1. Invoke the command palette with <kbd>Ctrl+Shift+P</kbd>
|
|
||||||
2. Type `LSP Settings` to open the LSP preferences editor
|
|
||||||
3. Add the following LSP client definition to your settings:
|
|
||||||
+
|
|
||||||
[source,json]
|
|
||||||
----
|
|
||||||
"rust-analyzer": {
|
|
||||||
"command": ["rust-analyzer"],
|
|
||||||
"languageId": "rust",
|
|
||||||
"scopes": ["source.rust"],
|
|
||||||
"syntaxes": [
|
|
||||||
"Packages/Rust/Rust.sublime-syntax",
|
|
||||||
"Packages/Rust Enhanced/RustEnhanced.sublime-syntax"
|
|
||||||
],
|
|
||||||
"initializationOptions": {
|
|
||||||
"featureFlags": {
|
|
||||||
}
|
|
||||||
},
|
|
||||||
}
|
|
||||||
----
|
|
||||||
|
|
||||||
4. 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)
|
|
||||||
|
|
||||||
== Usage
|
== Usage
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user