mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 22:54:58 +00:00
expose config for hover struct field display
This commit is contained in:
parent
6f6b03f9de
commit
d81148a009
3 changed files with 17 additions and 0 deletions
|
@ -375,6 +375,8 @@ config_data! {
|
|||
/// How to render the size information in a memory layout hover.
|
||||
hover_memoryLayout_size: Option<MemoryLayoutHoverRenderKindDef> = "\"both\"",
|
||||
|
||||
/// How many fields of a struct to display when hovering a struct.
|
||||
hover_show_structFields: Option<usize> = "null",
|
||||
/// How many associated items of a trait to display when hovering a trait.
|
||||
hover_show_traitAssocItems: Option<usize> = "null",
|
||||
|
||||
|
@ -1690,6 +1692,7 @@ impl Config {
|
|||
},
|
||||
keywords: self.data.hover_documentation_keywords_enable,
|
||||
max_trait_assoc_items_count: self.data.hover_show_traitAssocItems,
|
||||
max_struct_field_count: self.data.hover_show_structFields,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue