aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNirmal Patel2022-04-12 08:21:16 +0000
committerGitHub2022-04-12 08:21:16 +0000
commit3deb1c92306877e4d99c45f20f61c17c5e980492 (patch)
tree162d0b5449013f8140de631d4f11e32b061f3111
parent1fb614443292fe723e764782be560bb2ab3dda4e (diff)
Add true or false checkbox in health output table (#1947)
hx --health output table's second and third columns were not showing symbols like ✔ or ✘ to indicate whether LSP or DAP binaries were found. This change adds these symbols to improve accessibility. Fixes #1894 Signed-off-by: Nirmal Patel <npate012@gmail.com>
-rw-r--r--helix-term/src/health.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/helix-term/src/health.rs b/helix-term/src/health.rs
index 7f582cbf..bd74f478 100644
--- a/helix-term/src/health.rs
+++ b/helix-term/src/health.rs
@@ -134,8 +134,8 @@ pub fn languages_all() -> std::io::Result<()> {
let check_binary = |cmd: Option<String>| match cmd {
Some(cmd) => match which::which(&cmd) {
- Ok(_) => column(&cmd, Color::Green),
- Err(_) => column(&cmd, Color::Red),
+ Ok(_) => column(&format!("✔ {}", cmd), Color::Green),
+ Err(_) => column(&format!("✘ {}", cmd), Color::Red),
},
None => column("None", Color::Yellow),
};