mirror of
https://github.com/correl/doom-modeline.git
synced 2024-11-27 11:09:52 +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-update 'ace-window)
|
||||||
(declare-function aw-window-list 'ace-window)
|
(declare-function aw-window-list 'ace-window)
|
||||||
(declare-function battery-format 'battery)
|
(declare-function battery-format 'battery)
|
||||||
|
(declare-function eglot--current-server 'eglot)
|
||||||
(declare-function eglot--major-mode 'eglot)
|
(declare-function eglot--major-mode 'eglot)
|
||||||
(declare-function eglot--project-nickname 'eglot)
|
(declare-function eglot--project-nickname 'eglot)
|
||||||
(declare-function eglot--spinner 'eglot)
|
(declare-function eglot--spinner 'eglot)
|
||||||
|
@ -1508,7 +1509,7 @@ mouse-3: Reconnect to server")
|
||||||
#'lsp-restart-workspace))
|
#'lsp-restart-workspace))
|
||||||
map)))
|
map)))
|
||||||
" "))
|
" "))
|
||||||
((and (fboundp 'eglot--current-server) (eglot--current-server))
|
((bound-and-true-p eglot--managed-mode)
|
||||||
(pcase-let* ((icon (if doom-modeline-icon
|
(pcase-let* ((icon (if doom-modeline-icon
|
||||||
(doom-modeline-icon-faicon "rocket" :v-adjust -0.0575)
|
(doom-modeline-icon-faicon "rocket" :v-adjust -0.0575)
|
||||||
"EGLOT"))
|
"EGLOT"))
|
||||||
|
|
Loading…
Reference in a new issue