Skip to content

Commit

Permalink
Emacs: restore shortened LSP info in the mode line
Browse files Browse the repository at this point in the history
  • Loading branch information
laurynas-biveinis committed Sep 9, 2021
1 parent 8aef67b commit be71cb5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions emacs/.emacs.d/setup.el
Original file line number Diff line number Diff line change
Expand Up @@ -1362,6 +1362,15 @@ CANDIDATES is the list of candidates."
(setq lsp-semantic-tokens-enable t)
(setq lsp-headerline-breadcrumb-enable t)

(defun dotfiles--lsp-mode-line ()
"Construct the mode line text for `lsp-mode'."
(if (lsp-workspaces)
" LSP"
" !LSP"))

(setf (alist-get 'lsp-mode minor-mode-alist)
'((:eval (dotfiles--lsp-mode-line))))

(require 'lsp-headerline)
(setq lsp-headerline-breadcrumb-segments '(project file symbols))

Expand Down

0 comments on commit be71cb5

Please sign in to comment.