aboutsummaryrefslogtreecommitdiff
path: root/doom.d/modules/private/oreoline
diff options
context:
space:
mode:
authorodave <aryadevchavali1@gmail.com>2020-03-18 13:55:07 +0000
committerodave <aryadevchavali1@gmail.com>2020-03-18 13:55:54 +0000
commit91ae8862d29c6eac2647e6cbcba707a7acc53ea4 (patch)
tree4ec06df99a3b6805602344d18fb6d75383db520b /doom.d/modules/private/oreoline
parent7eda4bbe18f6d2772d3fe14c0e9cdcad53a122e4 (diff)
downloaddotfiles-91ae8862d29c6eac2647e6cbcba707a7acc53ea4.tar.gz
dotfiles-91ae8862d29c6eac2647e6cbcba707a7acc53ea4.tar.bz2
dotfiles-91ae8862d29c6eac2647e6cbcba707a7acc53ea4.zip
~lsp-segment -> oreline-lsp-segment
Diffstat (limited to 'doom.d/modules/private/oreoline')
-rw-r--r--doom.d/modules/private/oreoline/config.el17
1 files changed, 13 insertions, 4 deletions
diff --git a/doom.d/modules/private/oreoline/config.el b/doom.d/modules/private/oreoline/config.el
index 5cd30ad..6f14b73 100644
--- a/doom.d/modules/private/oreoline/config.el
+++ b/doom.d/modules/private/oreoline/config.el
@@ -25,20 +25,29 @@
(accent . (my-accent-light . my-accent-light))
(nil mode-line . mode-line-inactive))))
+ ; LSP segment
+ (telephone-line-defsegment +oreoline-lsp-segment ()
+ (after! lsp-mode
+ (if (lsp-workspaces)
+ (propertize "")
+ (propertize ""))))
+
; LHS
(setq telephone-line-lhs
- '((evil . (telephone-line-evil-tag-segment))
+ '((evil . (telephone-line-evil-tag-segment
+ telephone-line-buffer-modified-segment))
(accent . (telephone-line-vc-segment
telephone-line-filesize-segment
- telephone-line-projectile-buffer-segment
+ telephone-line-buffer-name-segment
telephone-line-erc-modified-channels-segment
- telephone-line-process-segment))))
+ telephone-line-process-segment))
+ (nil . ())))
; RHS
(setq telephone-line-rhs
'((nil . (telephone-line-misc-info-segment))
(accent . (telephone-line-major-mode-segment
- telephone-line-buffer-modified-segment
+ +oreoline-lsp-segment
telephone-line-flycheck-segment))
(evil . (telephone-line-airline-position-segment))))
:config