diff --git a/doom-modeline-segments.el b/doom-modeline-segments.el index 1f90aa2..7ea1852 100644 --- a/doom-modeline-segments.el +++ b/doom-modeline-segments.el @@ -1659,8 +1659,10 @@ mouse-1: Reload to start server") (interactive) (ignore-errors (revert-buffer t t)))))) map))))) -(add-hook 'lsp-mode-hook #'doom-modeline-update-lsp) +(add-hook 'lsp-after-initialize-hook #'doom-modeline-update-lsp) (add-hook 'lsp-after-uninitialized-hook #'doom-modeline-update-lsp) +(add-hook 'lsp-after-open-hook #'doom-modeline-update-lsp) +(add-hook 'lsp-workspace-folders-changed-hook #'doom-modeline-update-lsp) (defvar-local doom-modeline--eglot nil) (defun doom-modeline-update-eglot ()