From 3ab88cb57c0ace8727d74955b262cf6134198ef6 Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Fri, 14 Jun 2019 00:52:18 +0800 Subject: [PATCH] Make lsp state as buffer local. --- doom-modeline-segments.el | 4 ++-- doom-modeline.el | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doom-modeline-segments.el b/doom-modeline-segments.el index dc77615..1f90aa2 100644 --- a/doom-modeline-segments.el +++ b/doom-modeline-segments.el @@ -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 diff --git a/doom-modeline.el b/doom-modeline.el index 8af95bd..6764a10 100644 --- a/doom-modeline.el +++ b/doom-modeline.el @@ -4,7 +4,7 @@ ;; Author: Vincent Zhang ;; 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