aboutsummaryrefslogtreecommitdiff
path: root/helix-term
diff options
context:
space:
mode:
Diffstat (limited to 'helix-term')
-rw-r--r--helix-term/src/ui/editor.rs15
1 files changed, 9 insertions, 6 deletions
diff --git a/helix-term/src/ui/editor.rs b/helix-term/src/ui/editor.rs
index 32f70c8b..948803eb 100644
--- a/helix-term/src/ui/editor.rs
+++ b/helix-term/src/ui/editor.rs
@@ -668,13 +668,16 @@ impl EditorView {
let hint = theme.get("hint");
let mut lines = Vec::new();
+ let background_style = theme.get("ui.background");
for diagnostic in diagnostics {
- let style = Style::reset().patch(match diagnostic.severity {
- Some(Severity::Error) => error,
- Some(Severity::Warning) | None => warning,
- Some(Severity::Info) => info,
- Some(Severity::Hint) => hint,
- });
+ let style = Style::reset()
+ .patch(background_style)
+ .patch(match diagnostic.severity {
+ Some(Severity::Error) => error,
+ Some(Severity::Warning) | None => warning,
+ Some(Severity::Info) => info,
+ Some(Severity::Hint) => hint,
+ });
let text = Text::styled(&diagnostic.message, style);
lines.extend(text.lines);
}