mirror of
https://github.com/correl/doom-modeline.git
synced 2024-11-23 11:09:54 +00:00
Optimize performance of lsp indicator.
This commit is contained in:
parent
4c5a8d3ab9
commit
292f7bd238
1 changed files with 2 additions and 1 deletions
|
@ -86,6 +86,7 @@
|
|||
(declare-function aw-update 'ace-window)
|
||||
(declare-function aw-window-list 'ace-window)
|
||||
(declare-function battery-format 'battery)
|
||||
(declare-function eglot--current-server 'eglot)
|
||||
(declare-function eglot--major-mode 'eglot)
|
||||
(declare-function eglot--project-nickname 'eglot)
|
||||
(declare-function eglot--spinner 'eglot)
|
||||
|
@ -1508,7 +1509,7 @@ mouse-3: Reconnect to server")
|
|||
#'lsp-restart-workspace))
|
||||
map)))
|
||||
" "))
|
||||
((and (fboundp 'eglot--current-server) (eglot--current-server))
|
||||
((bound-and-true-p eglot--managed-mode)
|
||||
(pcase-let* ((icon (if doom-modeline-icon
|
||||
(doom-modeline-icon-faicon "rocket" :v-adjust -0.0575)
|
||||
"EGLOT"))
|
||||
|
|
Loading…
Reference in a new issue