Make lsp state as buffer local.

This commit is contained in:
Vincent Zhang 2019-06-14 00:52:18 +08:00
parent 6293c63924
commit 3ab88cb57c
2 changed files with 3 additions and 3 deletions

View file

@ -1621,7 +1621,7 @@ mouse-3: Describe current input method")
(doom-modeline-icon-faicon "rocket" :height 1.0 :face face :v-adjust -0.0575)
(propertize text 'face face)))
(defvar doom-modeline--lsp nil)
(defvar-local doom-modeline--lsp nil)
(defun doom-modeline-update-lsp (&rest _)
"Update `lsp-mode' status."
(setq doom-modeline--lsp
@ -1662,7 +1662,7 @@ mouse-1: Reload to start server")
(add-hook 'lsp-mode-hook #'doom-modeline-update-lsp)
(add-hook 'lsp-after-uninitialized-hook #'doom-modeline-update-lsp)
(defvar doom-modeline--eglot nil)
(defvar-local doom-modeline--eglot nil)
(defun doom-modeline-update-eglot ()
"Update `eglot' status."
(setq doom-modeline--eglot

View file

@ -4,7 +4,7 @@
;; Author: Vincent Zhang <seagle0128@gmail.com>
;; Homepage: https://github.com/seagle0128/doom-modeline
;; Version: 2.3.3
;; Version: 2.3.4
;; Package-Requires: ((emacs "25.1") (all-the-icons "1.0.0") (shrink-path "0.2.0") (dash "2.11.0"))
;; Keywords: faces mode-line