Unnamed repository; edit this file 'description' to name the repository.
-rw-r--r--book/src/themes.md4
-rw-r--r--helix-term/src/ui/text_decorations/diagnostics.rs8
2 files changed, 8 insertions, 4 deletions
diff --git a/book/src/themes.md b/book/src/themes.md
index 69b1a201..103e5e46 100644
--- a/book/src/themes.md
+++ b/book/src/themes.md
@@ -361,9 +361,13 @@ These scopes are used for theming the editor interface:
| `ui.cursorcolumn.primary` | The column of the primary cursor ([if cursorcolumn is enabled][editor-section]) |
| `ui.cursorcolumn.secondary` | The columns of any other cursors ([if cursorcolumn is enabled][editor-section]) |
| `warning` | Diagnostics warning (gutter) |
+| `warning.diagnostic.inline` | The inline diagnostic for the warning severity |
| `error` | Diagnostics error (gutter) |
+| `error.diagnostic.inline` | The inline diagnostic for the error severity |
| `info` | Diagnostics info (gutter) |
+| `info.diagnostic.inline` | The inline diagnostic for the warning severity |
| `hint` | Diagnostics hint (gutter) |
+| `hint.diagnostic.inline` | The inline diagnostic for the hint severity |
| `diagnostic` | Diagnostics fallback style (editing area) |
| `diagnostic.hint` | Diagnostics hint (editing area) |
| `diagnostic.info` | Diagnostics info (editing area) |
diff --git a/helix-term/src/ui/text_decorations/diagnostics.rs b/helix-term/src/ui/text_decorations/diagnostics.rs
index fb82bcf5..84f6c680 100644
--- a/helix-term/src/ui/text_decorations/diagnostics.rs
+++ b/helix-term/src/ui/text_decorations/diagnostics.rs
@@ -26,10 +26,10 @@ struct Styles {
impl Styles {
fn new(theme: &Theme) -> Styles {
Styles {
- hint: theme.get("hint"),
- info: theme.get("info"),
- warning: theme.get("warning"),
- error: theme.get("error"),
+ hint: theme.get("hint.diagnostic.inline"),
+ info: theme.get("info.diagnostic.inline"),
+ warning: theme.get("warning.diagnostic.inline"),
+ error: theme.get("error.diagnostic.inline"),
}
}