Function: doom-modeline-segment--lsp
doom-modeline-segment--lsp is a natively compiled function defined in
doom-modeline-segments.el.
Signature
(doom-modeline-segment--lsp)
Documentation
The LSP server state.
Source Code
;; Defined in /nix/store/1lcicrdd2r4b8rkc91nnn74ymk1jl6yd-emacs-packages-deps/share/emacs/site-lisp/elpa/doom-modeline-20260928.1632/doom-modeline-segments.el
(doom-modeline-def-segment lsp
"The LSP server state."
(when doom-modeline-lsp
(when-let* ((icon (cond ((bound-and-true-p lsp-mode)
doom-modeline--lsp)
((bound-and-true-p eglot--managed-mode)
doom-modeline--eglot)
((bound-and-true-p citre-mode)
doom-modeline--tags)))
(sep (doom-modeline-spc)))
(concat
sep
(doom-modeline-display-icon icon)
sep))))