mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
add config item for hover display
This commit is contained in:
parent
00358b1fe0
commit
35ec5955eb
10 changed files with 34 additions and 7 deletions
|
@ -406,7 +406,7 @@ pub(super) fn definition(
|
|||
config: &HoverConfig,
|
||||
) -> Markup {
|
||||
let mod_path = definition_mod_path(db, &def);
|
||||
let label = def.label(db);
|
||||
let label = def.label(db, config.trait_item_display_on_hover);
|
||||
let docs = def.docs(db, famous_defs);
|
||||
let value = (|| match def {
|
||||
Definition::Variant(it) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue