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)
((bound-and-true-p eglot--managed-mode)
doom-modeline--eglot))))
(concat
(doom-modeline-whitespace)
(when icon
(when icon
(concat
(doom-modeline-whitespace)
(if active
icon
(propertize icon 'face `(:inherit
,(get-text-property 0 'face icon)
:inherit
mode-line-inactive))))
(doom-modeline-whitespace)))))
mode-line-inactive)))
(doom-modeline-whitespace))))))
(defun doom-modeline-override-eglot-modeline ()
"Override `eglot' mode-line."