From a05aeb3b1a718320f1cf68ddb182520509d9cc9d Mon Sep 17 00:00:00 2001 From: tastytea Date: Fri, 8 Jan 2021 03:08:10 +0100 Subject: [PATCH] Emacs: LSP: Configure breadcrumb-mode. --- init.d/programming/lsp.el | 4 +++- init.d/text/common.el | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/init.d/programming/lsp.el b/init.d/programming/lsp.el index 77c8df5..7675f7e 100644 --- a/init.d/programming/lsp.el +++ b/init.d/programming/lsp.el @@ -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 diff --git a/init.d/text/common.el b/init.d/text/common.el index ff60648..5390872 100644 --- a/init.d/text/common.el +++ b/init.d/text/common.el @@ -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)