From 871b6f24c50769995258c3bbab26f9dc491771d7 Mon Sep 17 00:00:00 2001 From: dx Date: Wed, 6 May 2020 21:40:04 +0100 Subject: ~better implementation of lsp segment Checks if lsp-workspaces has been defined. --- Doom/.doom.d/modules/private/oreoline/config.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Doom/.doom.d/modules/private/oreoline/config.el b/Doom/.doom.d/modules/private/oreoline/config.el index c91b4f6..c81fa95 100644 --- a/Doom/.doom.d/modules/private/oreoline/config.el +++ b/Doom/.doom.d/modules/private/oreoline/config.el @@ -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 -- cgit v1.2.3-13-gbd6f