File tree 3 files changed +17
-0
lines changed 3 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -375,6 +375,8 @@ config_data! {
375
375
/// How to render the size information in a memory layout hover.
376
376
hover_memoryLayout_size: Option <MemoryLayoutHoverRenderKindDef > = "\" both\" " ,
377
377
378
+ /// How many fields of a struct to display when hovering a struct.
379
+ hover_show_structFields: Option <usize > = "null" ,
378
380
/// How many associated items of a trait to display when hovering a trait.
379
381
hover_show_traitAssocItems: Option <usize > = "null" ,
380
382
@@ -1690,6 +1692,7 @@ impl Config {
1690
1692
} ,
1691
1693
keywords : self . data . hover_documentation_keywords_enable ,
1692
1694
max_trait_assoc_items_count : self . data . hover_show_traitAssocItems ,
1695
+ max_struct_field_count : self . data . hover_show_structFields ,
1693
1696
}
1694
1697
}
1695
1698
Original file line number Diff line number Diff line change @@ -520,6 +520,11 @@ How to render the offset information in a memory layout hover.
520
520
--
521
521
How to render the size information in a memory layout hover.
522
522
--
523
+ [[rust-analyzer.hover.show.structFields]]rust-analyzer.hover.show.structFields (default: `null` )::
524
+ +
525
+ --
526
+ How many fields of a struct to display when hovering a struct.
527
+ --
523
528
[[rust-analyzer.hover.show.traitAssocItems]]rust-analyzer.hover.show.traitAssocItems (default: `null` )::
524
529
+
525
530
--
Original file line number Diff line number Diff line change 1144
1144
}
1145
1145
]
1146
1146
},
1147
+ "rust-analyzer.hover.show.structFields" : {
1148
+ "markdownDescription" : " How many fields of a struct to display when hovering a struct." ,
1149
+ "default" : null ,
1150
+ "type" : [
1151
+ " null" ,
1152
+ " integer"
1153
+ ],
1154
+ "minimum" : 0
1155
+ },
1147
1156
"rust-analyzer.hover.show.traitAssocItems" : {
1148
1157
"markdownDescription" : " How many associated items of a trait to display when hovering a trait." ,
1149
1158
"default" : null ,
You can’t perform that action at this time.
0 commit comments