Closed sebastiaanspeck closed 1 year ago
This also fixes the next bug. A doom-modeline needs to define the LHS & RHS and currently treemacs only defines the LHS
:+1:
((fboundp 'doom-modeline)
(with-no-warnings
(doom-modeline-def-segment treemacs
"Display treemacs."
(propertize (format " %s " (treemacs-workspace->name (treemacs-current-workspace)))
'face (doom-modeline-face 'doom-modeline-buffer-minor-mode)))
(doom-modeline-def-modeline 'treemacs '(bar " " major-mode) '(treemacs))
(doom-modeline 'treemacs)))
Using the extra segment, the current workspace name will be shown on the doom-modeline. I have provided a screenshot to show how it looks. I have chosen for the minor-mode-face to make a difference between the major-mode (Treemacs) and the workspace name.