Add a setting for keyword hover popups

This commit is contained in:
Jonas Schievink
2022-08-16 16:51:40 +02:00
parent b6fae56e38
commit 0616cee92b
7 changed files with 57 additions and 10 deletions

View File

@@ -244,6 +244,9 @@ config_data! {
/// Whether to show documentation on hover.
hover_documentation_enable: bool = "true",
/// Whether to show keyword hover popups. Only applies when
/// `#rust-analyzer.hover.documentation.enable#` is set.
hover_documentation_keywords: bool = "true",
/// Use markdown syntax for links in hover.
hover_links_enable: bool = "true",
@@ -1187,6 +1190,7 @@ impl Config {
HoverDocFormat::PlainText
}
}),
keywords: self.data.hover_documentation_keywords,
}
}