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