aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-12-31 13:51:23 +0000
committerAleksey Kladov <[email protected]>2019-12-31 13:51:23 +0000
commitffa928c3d52a5912e09af09e3fcff52756964086 (patch)
tree621b2f5ad5d874e741ed748e89700223060da9d8 /docs
parent8662a7dfe5bda51aa790afbbee7b3f3ee68ab6be (diff)
Add example of color customization
Diffstat (limited to 'docs')
-rw-r--r--docs/user/README.md13
1 files changed, 3 insertions, 10 deletions
diff --git a/docs/user/README.md b/docs/user/README.md
index 968d2e34c..a4b081dbb 100644
--- a/docs/user/README.md
+++ b/docs/user/README.md
@@ -88,16 +88,9 @@ host.
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. 91 Colors can be configured via `editor.tokenColorCustomizations`.
92 ```jsonc 92 As an example, [Pale Fire](https://github.com/matklad/pale-fire/) color scheme tweaks rust colors.
93 { 93* `rust-analyzer.enableEnhancedTyping`: by default, rust-analyzer intercepts.
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 ```
100* `rust-analyzer.enableEnhancedTyping`: by default, rust-analyzer intercepts
101 `Enter` key to make it easier to continue comments. Note that it may conflict with VIM emulation plugin. 94 `Enter` key to make it easier to continue comments. Note that it may conflict with VIM emulation plugin.
102* `rust-analyzer.raLspServerPath`: path to `ra_lsp_server` executable 95* `rust-analyzer.raLspServerPath`: path to `ra_lsp_server` executable
103* `rust-analyzer.enableCargoWatchOnStartup`: prompt to install & enable `cargo 96* `rust-analyzer.enableCargoWatchOnStartup`: prompt to install & enable `cargo