Improve: update lsp status.

This commit is contained in:
Vincent Zhang 2019-06-14 16:27:26 +08:00
parent 3ab88cb57c
commit 1a77ba0690

View file

@ -1659,8 +1659,10 @@ mouse-1: Reload to start server")
(interactive) (interactive)
(ignore-errors (revert-buffer t t)))))) (ignore-errors (revert-buffer t t))))))
map))))) 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-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) (defvar-local doom-modeline--eglot nil)
(defun doom-modeline-update-eglot () (defun doom-modeline-update-eglot ()