add config item for hover display

This commit is contained in:
Young-Flash 2024-02-18 17:43:22 +08:00
parent 00358b1fe0
commit 35ec5955eb
10 changed files with 34 additions and 7 deletions

View file

@ -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) => {