Only show vcs and flycheck states in current window.

This commit is contained in:
Vincent Zhang 2018-08-14 15:40:13 +08:00
parent 176307f66c
commit bd36eb9a98

View file

@ -690,7 +690,9 @@ directory, the file name, and its state (modified, read-only or non-existent)."
(doom-modeline-def-segment vcs (doom-modeline-def-segment vcs
"Displays the current branch, colored based on its state." "Displays the current branch, colored based on its state."
doom-modeline--vcs) (if (doom-modeline--active)
doom-modeline--vcs
""))
;; ;;
@ -736,7 +738,9 @@ Uses `all-the-icons-material' to fetch the icon."
(doom-modeline-def-segment flycheck (doom-modeline-def-segment flycheck
"Displays color-coded flycheck error status in the current buffer with pretty "Displays color-coded flycheck error status in the current buffer with pretty
icons." icons."
doom-modeline--flycheck) (if (doom-modeline--active)
doom-modeline--flycheck
""))
;; ;;