Don't show numbers while the check is running. And refactor checker.

This commit is contained in:
Vincent Zhang 2019-05-21 22:23:49 +08:00
parent 0a3ba66da7
commit 617b77a07a

View file

@ -680,10 +680,10 @@ Uses `all-the-icons-material' to fetch the icon."
(t 'doom-modeline-info))))
(doom-modeline-checker-icon "check" "-" 'doom-modeline-info)))
(`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))
(`interrupted (doom-modeline-checker-icon "pause" "!" 'doom-modeline-debug))
(`suspicious (doom-modeline-checker-icon "priority_high" "!" 'doom-modeline-urgent))
(`interrupted (doom-modeline-checker-icon "pause" "." 'doom-modeline-debug))
(`suspicious (doom-modeline-checker-icon "priority_high" "?" 'doom-modeline-urgent))
(_ nil))))
(when icon
(propertize icon
@ -743,9 +743,8 @@ mouse-2: Show help for minor mode")
'doom-modeline-warning)
(doom-modeline-checker-text (number-to-string info)
'doom-modeline-info)))))))
(`running doom-modeline--flycheck-text)
(`not-checked doom-modeline--flycheck-text)
(`no-checker (doom-modeline-checker-text "-" 'doom-modeline-debug))
(`running nil)
(`no-checker (doom-modeline-checker-text "No Checker" 'doom-modeline-debug))
(`errored (doom-modeline-checker-text "Error" 'doom-modeline-urgent))
(`interrupted (doom-modeline-checker-text "Interrupted" 'doom-modeline-debug))
(`suspicious (doom-modeline-checker-text "Suspicious" 'doom-modeline-urgent))