on master help sign in
Added checkmarks to health.rs output, Resolves #1894 (#1918)
36d1df7Simon H
helix-term/src/health.rs+4−4
@@ -154,8 +154,8 @@ pub fn languages_all() -> std::io::Result<()> {
154
154
155 for ts_feat in TsFeature::all() {
155 for ts_feat in TsFeature::all() {
156 match load_runtime_file(&lang.language_id, ts_feat.runtime_filename()).is_ok() {
156 match load_runtime_file(&lang.language_id, ts_feat.runtime_filename()).is_ok() {
157− true => column("Found", Color::Green),
157+ true => column("✔", Color::Green),
158− false => column("Not Found", Color::Red),
158+ false => column("✘", Color::Red),
159 }
159 }
160 }
160 }
161
161
@@ -263,8 +263,8 @@ fn probe_treesitter_feature(lang: &str, feature: TsFeature) -> std::io::Result<(
263 let mut stdout = stdout.lock();
263 let mut stdout = stdout.lock();
264
264
265 let found = match load_runtime_file(lang, feature.runtime_filename()).is_ok() {
265 let found = match load_runtime_file(lang, feature.runtime_filename()).is_ok() {
266− true => "Found".green(),
266+ true => "✔".green(),
267− false => "Not found".red(),
267+ false => "✘".red(),
268 };
268 };
269 writeln!(stdout, "{} queries: {}", feature.short_title(), found)?;
269 writeln!(stdout, "{} queries: {}", feature.short_title(), found)?;
270
270