Skip to content

Commit

Permalink
Add true or false checkbox in health output table
Browse files Browse the repository at this point in the history
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 helix-editor#1894

Signed-off-by: Nirmal Patel <npate012@gmail.com>
  • Loading branch information
nirmal-j-patel committed Apr 3, 2022
1 parent 9782204 commit 391c8bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helix-term/src/health.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
};
Expand Down

0 comments on commit 391c8bf

Please sign in to comment.