From 1eda83e3e54565a07875336a78fc88922a6a44c8 Mon Sep 17 00:00:00 2001 From: Rolo Date: Mon, 30 Dec 2024 09:43:06 -0800 Subject: [PATCH] chore: add comment for default diagnostic symbols --- helix-view/src/editor/config.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/helix-view/src/editor/config.rs b/helix-view/src/editor/config.rs index db0fbe63..52528ad2 100644 --- a/helix-view/src/editor/config.rs +++ b/helix-view/src/editor/config.rs @@ -162,6 +162,19 @@ pub struct Diagnostic { error: Option, } +// NOTE: #6646 can be achieved by uncommenting this or adding the symbols +// to the `map_or` default. +// impl Default for Diagnostic { +// fn default() -> Self { +// Self { +// hint: Some(String::from("○")), +// info: Some(String::from("●")), +// warning: Some(String::from("▲")), +// error: Some(String::from("■")), +// } +// } +// } + impl Diagnostic { const DEFAULT: &'static str = "●";