aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorLukas Wirth <[email protected]>2021-05-30 15:41:33 +0100
committerLukas Wirth <[email protected]>2021-05-31 14:14:56 +0100
commitfb7105a5801ab1d0ede830cd53bbc3ccbf0b5e2c (patch)
tree958c7a8548dcc6cfce25ace53476183d73b1460d /docs
parent4507382f2e66cd0e6498228bfdffb16769063b0f (diff)
Add config setting for self-on-the-fly
Diffstat (limited to 'docs')
-rw-r--r--docs/dev/architecture.md5
-rw-r--r--docs/user/generated_config.adoc6
2 files changed, 11 insertions, 0 deletions
diff --git a/docs/dev/architecture.md b/docs/dev/architecture.md
index 39edf9e19..2624069a5 100644
--- a/docs/dev/architecture.md
+++ b/docs/dev/architecture.md
@@ -447,3 +447,8 @@ This is cheap enough to enable in production.
447 447
448Similarly, we save live object counting (`RA_COUNT=1`). 448Similarly, we save live object counting (`RA_COUNT=1`).
449It is not cheap enough to enable in prod, and this is a bug which should be fixed. 449It is not cheap enough to enable in prod, and this is a bug which should be fixed.
450
451### Configurability
452
453rust-analyzer strives to be as configurable as possible while offering reasonable defaults where no configuration exists yet.
454There will always be features that some people find more annoying than helpful, so giving the users the ability to tweak or disable these is a big part of offering a good user experience.
diff --git a/docs/user/generated_config.adoc b/docs/user/generated_config.adoc
index 4a5782a57..dbd9a3503 100644
--- a/docs/user/generated_config.adoc
+++ b/docs/user/generated_config.adoc
@@ -136,6 +136,12 @@ Whether to show postfix snippets like `dbg`, `if`, `not`, etc.
136Toggles the additional completions that automatically add imports when completed. 136Toggles the additional completions that automatically add imports when completed.
137Note that your client must specify the `additionalTextEdits` LSP client capability to truly have this feature enabled. 137Note that your client must specify the `additionalTextEdits` LSP client capability to truly have this feature enabled.
138-- 138--
139[[rust-analyzer.completion.autoself.enable]]rust-analyzer.completion.autoself.enable (default: `true`)::
140+
141--
142Toggles the additional completions that automatically show method calls and field accesses
143with `self` prefixed to them when inside a method.
144--
139[[rust-analyzer.diagnostics.enable]]rust-analyzer.diagnostics.enable (default: `true`):: 145[[rust-analyzer.diagnostics.enable]]rust-analyzer.diagnostics.enable (default: `true`)::
140+ 146+
141-- 147--