aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2019-10-25 07:01:00 +0100
committerGitHub <[email protected]>2019-10-25 07:01:00 +0100
commit518f99e16b993e3414a81181c8bad7a89e590ece (patch)
tree6239cfcafd1d0a579b4f51e4e875cc0a8e85efb4 /docs
parentc02f1165ca4099ea6c3706a670513f7904630615 (diff)
parentdc65219ae1216e747215fe937b248ebf2469f33f (diff)
Merge #2065
2065: document feature flags r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
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 f1628d6a4..a1cef22cc 100644
--- a/docs/user/README.md
+++ b/docs/user/README.md
@@ -83,8 +83,6 @@ host.
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.showWorkspaceLoadedNotification`: to ease troubleshooting, a
87 notification is shown by default when a workspace is loaded
88* `rust-analyzer.enableEnhancedTyping`: by default, rust-analyzer intercepts 86* `rust-analyzer.enableEnhancedTyping`: by default, rust-analyzer intercepts
89 `Enter` key to make it easier to continue comments. Note that it may conflict with VIM emulation plugin. 87 `Enter` key to make it easier to continue comments. Note that it may conflict with VIM emulation plugin.
90* `rust-analyzer.raLspServerPath`: path to `ra_lsp_server` executable 88* `rust-analyzer.raLspServerPath`: path to `ra_lsp_server` executable
@@ -102,6 +100,17 @@ host.
102* `rust-analyzer.trace.server`: enables internal logging 100* `rust-analyzer.trace.server`: enables internal logging
103* `rust-analyzer.trace.cargo-watch`: enables cargo-watch logging 101* `rust-analyzer.trace.cargo-watch`: enables cargo-watch logging
104* `RUST_SRC_PATH`: environment variable that overwrites the sysroot 102* `RUST_SRC_PATH`: environment variable that overwrites the sysroot
103* `rust-analyzer.featureFlags` -- a JSON object to tweak fine-grained behavior:
104 ```js
105 {
106 // Show diagnostics produced by rust-analyzer itself.
107 "lsp.diagnostics": true,
108 // Automatically insert `()` and `<>` when completing functions and types.
109 "completion.insertion.add-call-parenthesis": true,
110 // Show notification when workspace is fully loaded
111 "notifications.workspace-loaded": true,
112 }
113 ```
105 114
106 115
107## Emacs 116## Emacs