From 1a77ba069087c3e681973e5766aaec5c2eb2740c Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Fri, 14 Jun 2019 16:27:26 +0800 Subject: [PATCH] Improve: update lsp status. --- doom-modeline-segments.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 ()