diff options
author | Jorge Mederos Alvarado <[email protected]> | 2021-04-21 22:14:17 +0100 |
---|---|---|
committer | Jorge Mederos Alvarado <[email protected]> | 2021-04-27 01:29:54 +0100 |
commit | c4dba4077f748ce16c91d369b98cbb23e59633c6 (patch) | |
tree | 5dee6c94d03c51b9d147c6acfbe36e6e8d7a40d3 | |
parent | 9e5ef0ce723caa3270f9595ba738aa756a8804a9 (diff) |
Add config options
-rw-r--r-- | crates/rust-analyzer/src/config.rs | 2 | ||||
-rw-r--r-- | docs/user/generated_config.adoc | 5 |
2 files changed, 7 insertions, 0 deletions
diff --git a/crates/rust-analyzer/src/config.rs b/crates/rust-analyzer/src/config.rs index d81ee94ee..28bbbce19 100644 --- a/crates/rust-analyzer/src/config.rs +++ b/crates/rust-analyzer/src/config.rs | |||
@@ -145,6 +145,8 @@ config_data! { | |||
145 | inlayHints_parameterHints: bool = "true", | 145 | inlayHints_parameterHints: bool = "true", |
146 | /// Whether to show inlay type hints for variables. | 146 | /// Whether to show inlay type hints for variables. |
147 | inlayHints_typeHints: bool = "true", | 147 | inlayHints_typeHints: bool = "true", |
148 | /// Whether inlay hints font size should be smaller than editor's font size. | ||
149 | inlayHints_smallerHints: bool = "true", | ||
148 | 150 | ||
149 | /// Whether to show `Debug` lens. Only applies when | 151 | /// Whether to show `Debug` lens. Only applies when |
150 | /// `#rust-analyzer.lens.enable#` is set. | 152 | /// `#rust-analyzer.lens.enable#` is set. |
diff --git a/docs/user/generated_config.adoc b/docs/user/generated_config.adoc index e28423e99..db3c5f7bb 100644 --- a/docs/user/generated_config.adoc +++ b/docs/user/generated_config.adoc | |||
@@ -234,6 +234,11 @@ site. | |||
234 | -- | 234 | -- |
235 | Whether to show inlay type hints for variables. | 235 | Whether to show inlay type hints for variables. |
236 | -- | 236 | -- |
237 | [[rust-analyzer.inlayHints.smallerHints]]rust-analyzer.inlayHints.smallerHints (default: `true`):: | ||
238 | + | ||
239 | -- | ||
240 | Whether inlay hints font size should be smaller than editor's font size. | ||
241 | -- | ||
237 | [[rust-analyzer.lens.debug]]rust-analyzer.lens.debug (default: `true`):: | 242 | [[rust-analyzer.lens.debug]]rust-analyzer.lens.debug (default: `true`):: |
238 | + | 243 | + |
239 | -- | 244 | -- |