aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorSeivan Heidari <[email protected]>2019-11-04 22:59:11 +0000
committerSeivan Heidari <[email protected]>2019-11-04 22:59:11 +0000
commitc60f9bf4c6d6ddd341c673b228b6aa1add3da62b (patch)
treee411904c533ac37745397719bbfe983aeb21b372 /docs
parentdad9bc6caad71e6aebb92ad9883c08d30431e9b1 (diff)
* Adding scope mapping configuration manifest in `package.json`
* Loading configurable scope mappings from settings. * Updating Readme with `rust-analyzer.scopeMappings`. `rust-analyzer.scopeMappings` -- a scheme backed JSON object to tweak Rust Analyzer scopes to TextMate scopes. ```jsonc { //Will autocomplete keys to available RA scopes. "keyword.unsafe": ["keyword", "keyword.control"], //Values are string | TextMateScope | [string | TextMateScope] "comments": "comment.block" } ```
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 eb1d5ed14..42742c0e6 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 "comments": "comment.block"
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,