diff options
Diffstat (limited to 'docs/user')
-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 | ||