mirror of
https://github.com/correl/doom-modeline.git
synced 2024-11-23 19:19:50 +00:00
Don't show numbers while the check is running. And refactor checker.
This commit is contained in:
parent
0a3ba66da7
commit
617b77a07a
1 changed files with 5 additions and 6 deletions
|
@ -680,10 +680,10 @@ Uses `all-the-icons-material' to fetch the icon."
|
||||||
(t 'doom-modeline-info))))
|
(t 'doom-modeline-info))))
|
||||||
(doom-modeline-checker-icon "check" "-" 'doom-modeline-info)))
|
(doom-modeline-checker-icon "check" "-" 'doom-modeline-info)))
|
||||||
(`running (doom-modeline-checker-icon "access_time" "*" 'doom-modeline-debug))
|
(`running (doom-modeline-checker-icon "access_time" "*" 'doom-modeline-debug))
|
||||||
(`no-checker (doom-modeline-checker-icon "sim_card_alert" "?" 'doom-modeline-debug))
|
(`no-checker (doom-modeline-checker-icon "sim_card_alert" "-" 'doom-modeline-debug))
|
||||||
(`errored (doom-modeline-checker-icon "sim_card_alert" "!" 'doom-modeline-urgent))
|
(`errored (doom-modeline-checker-icon "sim_card_alert" "!" 'doom-modeline-urgent))
|
||||||
(`interrupted (doom-modeline-checker-icon "pause" "!" 'doom-modeline-debug))
|
(`interrupted (doom-modeline-checker-icon "pause" "." 'doom-modeline-debug))
|
||||||
(`suspicious (doom-modeline-checker-icon "priority_high" "!" 'doom-modeline-urgent))
|
(`suspicious (doom-modeline-checker-icon "priority_high" "?" 'doom-modeline-urgent))
|
||||||
(_ nil))))
|
(_ nil))))
|
||||||
(when icon
|
(when icon
|
||||||
(propertize icon
|
(propertize icon
|
||||||
|
@ -743,9 +743,8 @@ mouse-2: Show help for minor mode")
|
||||||
'doom-modeline-warning)
|
'doom-modeline-warning)
|
||||||
(doom-modeline-checker-text (number-to-string info)
|
(doom-modeline-checker-text (number-to-string info)
|
||||||
'doom-modeline-info)))))))
|
'doom-modeline-info)))))))
|
||||||
(`running doom-modeline--flycheck-text)
|
(`running nil)
|
||||||
(`not-checked doom-modeline--flycheck-text)
|
(`no-checker (doom-modeline-checker-text "No Checker" 'doom-modeline-debug))
|
||||||
(`no-checker (doom-modeline-checker-text "-" 'doom-modeline-debug))
|
|
||||||
(`errored (doom-modeline-checker-text "Error" 'doom-modeline-urgent))
|
(`errored (doom-modeline-checker-text "Error" 'doom-modeline-urgent))
|
||||||
(`interrupted (doom-modeline-checker-text "Interrupted" 'doom-modeline-debug))
|
(`interrupted (doom-modeline-checker-text "Interrupted" 'doom-modeline-debug))
|
||||||
(`suspicious (doom-modeline-checker-text "Suspicious" 'doom-modeline-urgent))
|
(`suspicious (doom-modeline-checker-text "Suspicious" 'doom-modeline-urgent))
|
||||||
|
|
Loading…
Reference in a new issue