diff --git a/doom-modeline-segments.el b/doom-modeline-segments.el index 1089f91..78a65d8 100644 --- a/doom-modeline-segments.el +++ b/doom-modeline-segments.el @@ -282,6 +282,8 @@ mouse-1: Previous buffer\nmouse-3: Next buffer" (add-hook 'after-save-hook #'doom-modeline-update-buffer-file-name) (add-hook 'after-change-functions #'doom-modeline-update-buffer-file-name) (add-hook 'clone-indirect-buffer-hook #'doom-modeline-update-buffer-file-name) +(add-hook 'evil-insert-state-exit-hook #'doom-modeline-update-buffer-file-name) +(add-hook 'evil-insert-state-exit-hook #'doom-modeline-update-buffer-file-state-icon) (advice-add #'rename-buffer :after #'doom-modeline-update-buffer-file-name) (advice-add #'set-visited-file-name :after #'doom-modeline-update-buffer-file-name) (advice-add #'undo :after #'doom-modeline-update-buffer-file-name)