mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +00:00
feat(checkhealth): use emoji for OK/WARN/ERROR (#33195)
Problem:
Health status can be much more visually distinct.
Solution:
Use emoji next to each status.
(cherry picked from commit 75fe540500)
Co-authored-by: Justin M. Keyes <justinkz@gmail.com>
This commit is contained in:
committed by
GitHub
parent
649bce6e73
commit
7efb3ba6f7
@@ -275,7 +275,7 @@ end
|
||||
---
|
||||
--- @param msg string
|
||||
function M.ok(msg)
|
||||
local input = format_report_message('OK', msg)
|
||||
local input = format_report_message('✅ OK', msg)
|
||||
collect_output(input)
|
||||
end
|
||||
|
||||
@@ -284,7 +284,7 @@ end
|
||||
--- @param msg string
|
||||
--- @param ... string|string[] Optional advice
|
||||
function M.warn(msg, ...)
|
||||
local input = format_report_message('WARNING', msg, ...)
|
||||
local input = format_report_message('⚠️ WARNING', msg, ...)
|
||||
collect_output(input)
|
||||
end
|
||||
|
||||
@@ -293,7 +293,7 @@ end
|
||||
--- @param msg string
|
||||
--- @param ... string|string[] Optional advice
|
||||
function M.error(msg, ...)
|
||||
local input = format_report_message('ERROR', msg, ...)
|
||||
local input = format_report_message('❌ ERROR', msg, ...)
|
||||
collect_output(input)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user