Remove unused spaces while lsp is not enabled.

This commit is contained in:
Vincent Zhang 2019-05-19 23:04:34 +08:00
parent 46338a560d
commit ea9c02134c

View file

@ -1719,16 +1719,16 @@ mouse-3: Reconnect to server" nick (eglot--major-mode server)))
doom-modeline--lsp) doom-modeline--lsp)
((bound-and-true-p eglot--managed-mode) ((bound-and-true-p eglot--managed-mode)
doom-modeline--eglot)))) doom-modeline--eglot))))
(concat (when icon
(doom-modeline-whitespace) (concat
(when icon (doom-modeline-whitespace)
(if active (if active
icon icon
(propertize icon 'face `(:inherit (propertize icon 'face `(:inherit
,(get-text-property 0 'face icon) ,(get-text-property 0 'face icon)
:inherit :inherit
mode-line-inactive)))) mode-line-inactive)))
(doom-modeline-whitespace))))) (doom-modeline-whitespace))))))
(defun doom-modeline-override-eglot-modeline () (defun doom-modeline-override-eglot-modeline ()
"Override `eglot' mode-line." "Override `eglot' mode-line."