diff options
Diffstat (limited to 'crates/rust-analyzer/src/config.rs')
-rw-r--r-- | crates/rust-analyzer/src/config.rs | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/crates/rust-analyzer/src/config.rs b/crates/rust-analyzer/src/config.rs index 3b20d741a..5d3deb232 100644 --- a/crates/rust-analyzer/src/config.rs +++ b/crates/rust-analyzer/src/config.rs | |||
@@ -141,6 +141,11 @@ config_data! { | |||
141 | /// their contents. | 141 | /// their contents. |
142 | highlighting_strings: bool = "true", | 142 | highlighting_strings: bool = "true", |
143 | 143 | ||
144 | /// Whether to show documentation on hover. | ||
145 | hover_documentation: bool = "true", | ||
146 | /// Use markdown syntax for links in hover. | ||
147 | hover_linksInHover: bool = "true", | ||
148 | |||
144 | /// Whether to show `Debug` action. Only applies when | 149 | /// Whether to show `Debug` action. Only applies when |
145 | /// `#rust-analyzer.hoverActions.enable#` is set. | 150 | /// `#rust-analyzer.hoverActions.enable#` is set. |
146 | hoverActions_debug: bool = "true", | 151 | hoverActions_debug: bool = "true", |
@@ -158,8 +163,6 @@ config_data! { | |||
158 | /// Whether to show `Run` action. Only applies when | 163 | /// Whether to show `Run` action. Only applies when |
159 | /// `#rust-analyzer.hoverActions.enable#` is set. | 164 | /// `#rust-analyzer.hoverActions.enable#` is set. |
160 | hoverActions_run: bool = "true", | 165 | hoverActions_run: bool = "true", |
161 | /// Use markdown syntax for links in hover. | ||
162 | hoverActions_linksInHover: bool = "true", | ||
163 | 166 | ||
164 | /// Whether to show inlay type hints for method chains. | 167 | /// Whether to show inlay type hints for method chains. |
165 | inlayHints_chainingHints: bool = "true", | 168 | inlayHints_chainingHints: bool = "true", |
@@ -726,7 +729,7 @@ impl Config { | |||
726 | run: self.data.hoverActions_enable && self.data.hoverActions_run, | 729 | run: self.data.hoverActions_enable && self.data.hoverActions_run, |
727 | debug: self.data.hoverActions_enable && self.data.hoverActions_debug, | 730 | debug: self.data.hoverActions_enable && self.data.hoverActions_debug, |
728 | goto_type_def: self.data.hoverActions_enable && self.data.hoverActions_gotoTypeDef, | 731 | goto_type_def: self.data.hoverActions_enable && self.data.hoverActions_gotoTypeDef, |
729 | links_in_hover: self.data.hoverActions_linksInHover, | 732 | links_in_hover: self.data.hover_linksInHover, |
730 | markdown: try_or!( | 733 | markdown: try_or!( |
731 | self.caps | 734 | self.caps |
732 | .text_document | 735 | .text_document |
@@ -739,6 +742,7 @@ impl Config { | |||
739 | &[] | 742 | &[] |
740 | ) | 743 | ) |
741 | .contains(&MarkupKind::Markdown), | 744 | .contains(&MarkupKind::Markdown), |
745 | documentation: self.data.hover_documentation, | ||
742 | } | 746 | } |
743 | } | 747 | } |
744 | 748 | ||