mirror of
https://github.com/correl/doom-modeline.git
synced 2024-11-24 03:00:10 +00:00
Make lsp state as buffer local.
This commit is contained in:
parent
6293c63924
commit
3ab88cb57c
2 changed files with 3 additions and 3 deletions
|
@ -1621,7 +1621,7 @@ mouse-3: Describe current input method")
|
||||||
(doom-modeline-icon-faicon "rocket" :height 1.0 :face face :v-adjust -0.0575)
|
(doom-modeline-icon-faicon "rocket" :height 1.0 :face face :v-adjust -0.0575)
|
||||||
(propertize text 'face face)))
|
(propertize text 'face face)))
|
||||||
|
|
||||||
(defvar doom-modeline--lsp nil)
|
(defvar-local doom-modeline--lsp nil)
|
||||||
(defun doom-modeline-update-lsp (&rest _)
|
(defun doom-modeline-update-lsp (&rest _)
|
||||||
"Update `lsp-mode' status."
|
"Update `lsp-mode' status."
|
||||||
(setq doom-modeline--lsp
|
(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-mode-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)
|
||||||
|
|
||||||
(defvar doom-modeline--eglot nil)
|
(defvar-local doom-modeline--eglot nil)
|
||||||
(defun doom-modeline-update-eglot ()
|
(defun doom-modeline-update-eglot ()
|
||||||
"Update `eglot' status."
|
"Update `eglot' status."
|
||||||
(setq doom-modeline--eglot
|
(setq doom-modeline--eglot
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
;; Author: Vincent Zhang <seagle0128@gmail.com>
|
;; Author: Vincent Zhang <seagle0128@gmail.com>
|
||||||
;; Homepage: https://github.com/seagle0128/doom-modeline
|
;; 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"))
|
;; Package-Requires: ((emacs "25.1") (all-the-icons "1.0.0") (shrink-path "0.2.0") (dash "2.11.0"))
|
||||||
;; Keywords: faces mode-line
|
;; Keywords: faces mode-line
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue