Emacs: LSP: Configure breadcrumb-mode.

This commit is contained in:
tastytea 2021-01-08 03:08:10 +01:00
parent a3bb6c8d13
commit a05aeb3b1a
2 changed files with 6 additions and 2 deletions

View File

@ -21,7 +21,9 @@
(lsp-semantic-tokens-apply-modifiers t)
(lsp-prefer-capf t)
(lsp-keymap-prefix "C-c l")
(lsp-keep-workspace-alive nil))
(lsp-keep-workspace-alive nil)
(lsp-headerline-breadcrumb-segments
'(project path-up-to-project file symbols)))
:custom-face
;; Semantic highlighting. TODO: Check later if better options are available.
(lsp-face-semhl-variable ((t (:inherit font-lock-variable-name-face

View File

@ -76,7 +76,9 @@
(defun my/ruler-on ()
"Turn `ruler-mode' on."
(ruler-mode 1)))
(unless (bound-and-true-p lsp-mode)
;; lsp-mode has this breadcrumb thingie instead.
(ruler-mode 1))))
:custom-face (ruler-mode-default ((t (:inherit·default
:box·nil))))
:hook ((find-file . my/ruler-on)