aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/user/README.md13
1 files changed, 11 insertions, 2 deletions
diff --git a/docs/user/README.md b/docs/user/README.md
index bfb190449..235676850 100644
--- a/docs/user/README.md
+++ b/docs/user/README.md
@@ -82,7 +82,16 @@ host.
82 82
83### Settings 83### Settings
84 84
85* `rust-analyzer.highlightingOn`: enables experimental syntax highlighting 85* `rust-analyzer.highlightingOn`: enables experimental syntax highlighting.
86* `rust-analyzer.scopeMappings` -- a scheme backed JSON object to tweak Rust Analyzer scopes to TextMate scopes.
87 ```jsonc
88 {
89 //Will autocomplete keys to available RA scopes.
90 "keyword.unsafe": ["keyword", "keyword.control"],
91 //Values are string | TextMateScope | [string | TextMateScope]
92 "variable.mut": "variable"
93 }
94 ```
86* `rust-analyzer.enableEnhancedTyping`: by default, rust-analyzer intercepts 95* `rust-analyzer.enableEnhancedTyping`: by default, rust-analyzer intercepts
87 `Enter` key to make it easier to continue comments. Note that it may conflict with VIM emulation plugin. 96 `Enter` key to make it easier to continue comments. Note that it may conflict with VIM emulation plugin.
88* `rust-analyzer.raLspServerPath`: path to `ra_lsp_server` executable 97* `rust-analyzer.raLspServerPath`: path to `ra_lsp_server` executable
@@ -101,7 +110,7 @@ host.
101* `rust-analyzer.trace.cargo-watch`: enables cargo-watch logging 110* `rust-analyzer.trace.cargo-watch`: enables cargo-watch logging
102* `RUST_SRC_PATH`: environment variable that overwrites the sysroot 111* `RUST_SRC_PATH`: environment variable that overwrites the sysroot
103* `rust-analyzer.featureFlags` -- a JSON object to tweak fine-grained behavior: 112* `rust-analyzer.featureFlags` -- a JSON object to tweak fine-grained behavior:
104 ```js 113 ```jsonc
105 { 114 {
106 // Show diagnostics produced by rust-analyzer itself. 115 // Show diagnostics produced by rust-analyzer itself.
107 "lsp.diagnostics": true, 116 "lsp.diagnostics": true,