Skip to content

Commit c4dba40

Browse files
Add config options
1 parent 9e5ef0c commit c4dba40

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

crates/rust-analyzer/src/config.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,8 @@ config_data! {
145145
inlayHints_parameterHints: bool = "true",
146146
/// Whether to show inlay type hints for variables.
147147
inlayHints_typeHints: bool = "true",
148+
/// Whether inlay hints font size should be smaller than editor's font size.
149+
inlayHints_smallerHints: bool = "true",
148150

149151
/// Whether to show `Debug` lens. Only applies when
150152
/// `#rust-analyzer.lens.enable#` is set.

docs/user/generated_config.adoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,11 @@ site.
234234
--
235235
Whether to show inlay type hints for variables.
236236
--
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+
--
237242
[[rust-analyzer.lens.debug]]rust-analyzer.lens.debug (default: `true`)::
238243
+
239244
--

0 commit comments

Comments
 (0)