diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-04-08 23:36:25 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-04-08 23:36:25 +0100 |
commit | 080c983498afcac3eb54028af5c9f8bfe7f2c826 (patch) | |
tree | 87b747de58bf438c01fe5f6e932c4921878bf114 /docs | |
parent | 937fd557b09eb3a762319200796a0114a377e9c4 (diff) | |
parent | eb1ca5f4482bcad497652f837cd275eb9395617c (diff) |
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 <[email protected]>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/user/readme.adoc | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/docs/user/readme.adoc b/docs/user/readme.adoc index 911163eb7..abd126340 100644 --- a/docs/user/readme.adoc +++ b/docs/user/readme.adoc | |||
@@ -187,30 +187,7 @@ Prerequisites: | |||
187 | 187 | ||
188 | `LSP` package. | 188 | `LSP` package. |
189 | 189 | ||
190 | Installation: | 190 | 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) |
191 | |||
192 | 1. Invoke the command palette with <kbd>Ctrl+Shift+P</kbd> | ||
193 | 2. Type `LSP Settings` to open the LSP preferences editor | ||
194 | 3. Add the following LSP client definition to your settings: | ||
195 | + | ||
196 | [source,json] | ||
197 | ---- | ||
198 | "rust-analyzer": { | ||
199 | "command": ["rust-analyzer"], | ||
200 | "languageId": "rust", | ||
201 | "scopes": ["source.rust"], | ||
202 | "syntaxes": [ | ||
203 | "Packages/Rust/Rust.sublime-syntax", | ||
204 | "Packages/Rust Enhanced/RustEnhanced.sublime-syntax" | ||
205 | ], | ||
206 | "initializationOptions": { | ||
207 | "featureFlags": { | ||
208 | } | ||
209 | }, | ||
210 | } | ||
211 | ---- | ||
212 | |||
213 | 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) | ||
214 | 191 | ||
215 | == Usage | 192 | == Usage |
216 | 193 | ||