diff options
| author | roife <roifewu@gmail.com> | 2024-04-19 21:31:54 +0800 |
|---|---|---|
| committer | roife <roifewu@gmail.com> | 2024-04-19 21:45:56 +0800 |
| commit | c1a4ba55d7f17379fbbde480550174d7fe0ff04a (patch) | |
| tree | 9d68b348a5df494eb7eadfb1fe4e98353af24076 /src/tools/rust-analyzer/docs/user | |
| parent | a1136121b8d7cd5a6eb7f9a18e3b7f91ac9e1913 (diff) | |
fix: add a separate setting for enum variants
Diffstat (limited to 'src/tools/rust-analyzer/docs/user')
| -rw-r--r-- | src/tools/rust-analyzer/docs/user/generated_config.adoc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/tools/rust-analyzer/docs/user/generated_config.adoc b/src/tools/rust-analyzer/docs/user/generated_config.adoc index d275b51abc3..acc10cdb8fb 100644 --- a/src/tools/rust-analyzer/docs/user/generated_config.adoc +++ b/src/tools/rust-analyzer/docs/user/generated_config.adoc @@ -533,10 +533,15 @@ How to render the offset information in a memory layout hover. -- How to render the size information in a memory layout hover. -- -[[rust-analyzer.hover.show.adtFieldsOrVariants]]rust-analyzer.hover.show.adtFieldsOrVariants (default: `5`):: +[[rust-analyzer.hover.show.enumVariants]]rust-analyzer.hover.show.enumVariants (default: `5`):: + -- -How many fields or variants of an ADT (struct, enum or union) to display when hovering on. Show none if empty. +How many variants of an enum to display when hovering on. Show none if empty. +-- +[[rust-analyzer.hover.show.structOrUnionFields]]rust-analyzer.hover.show.structOrUnionFields (default: `5`):: ++ +-- +How many fields of a struct or union to display when hovering on. Show none if empty. -- [[rust-analyzer.hover.show.traitAssocItems]]rust-analyzer.hover.show.traitAssocItems (default: `null`):: + |
