aboutsummaryrefslogtreecommitdiff
path: root/docs/user
diff options
context:
space:
mode:
authorElinvynia <[email protected]>2020-04-08 23:32:56 +0100
committerElinvynia <[email protected]>2020-04-08 23:32:56 +0100
commiteb1ca5f4482bcad497652f837cd275eb9395617c (patch)
tree87b747de58bf438c01fe5f6e932c4921878bf114 /docs/user
parent937fd557b09eb3a762319200796a0114a377e9c4 (diff)
Better Sublime documentation
Diffstat (limited to 'docs/user')
-rw-r--r--docs/user/readme.adoc25
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
190Installation: 190Invoke 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
1921. Invoke the command palette with <kbd>Ctrl+Shift+P</kbd>
1932. Type `LSP Settings` to open the LSP preferences editor
1943. 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
2134. 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