Skip to content

Commit be71cb5

Browse files
Emacs: restore shortened LSP info in the mode line
1 parent 8aef67b commit be71cb5

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

emacs/.emacs.d/setup.el

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1362,6 +1362,15 @@ CANDIDATES is the list of candidates."
13621362
(setq lsp-semantic-tokens-enable t)
13631363
(setq lsp-headerline-breadcrumb-enable t)
13641364

1365+
(defun dotfiles--lsp-mode-line ()
1366+
"Construct the mode line text for `lsp-mode'."
1367+
(if (lsp-workspaces)
1368+
" LSP"
1369+
" !LSP"))
1370+
1371+
(setf (alist-get 'lsp-mode minor-mode-alist)
1372+
'((:eval (dotfiles--lsp-mode-line))))
1373+
13651374
(require 'lsp-headerline)
13661375
(setq lsp-headerline-breadcrumb-segments '(project file symbols))
13671376

0 commit comments

Comments
 (0)