diff --git a/doom-modeline.el b/doom-modeline.el index c5f7b5d..aa4c198 100644 --- a/doom-modeline.el +++ b/doom-modeline.el @@ -693,6 +693,7 @@ directory, the file name, and its state (modified, read-only or non-existent)." (add-hook 'after-revert-hook #'doom-modeline--update-vcs) (add-hook 'after-save-hook #'doom-modeline--update-vcs) (add-hook 'find-file-hook #'doom-modeline--update-vcs t) +(advice-add #'vc-refresh-state :after #'doom-modeline--update-vcs) (doom-modeline-def-segment vcs "Displays the current branch, colored based on its state."