~better implementation of lsp segment

Checks if lsp-workspaces has been defined.
This commit is contained in:
dx
2020-05-06 21:40:04 +01:00
parent e053ef3d2c
commit 871b6f24c5

View File

@@ -32,9 +32,9 @@
; LSP segment
(telephone-line-defsegment +oreoline-lsp-segment ()
`((:propertize (if (lsp-workspaces)
(propertize "")
(propertize "")))))
(if (fboundp #'lsp-workspaces)
(propertize "")
(propertize "")))
; LHS
(setq telephone-line-lhs