Only show buffer names in inactive windows.

This commit is contained in:
Vincent Zhang 2018-11-27 05:54:36 +08:00
parent e729389ab8
commit 88a10968d1

View file

@ -776,8 +776,12 @@ directory, the file name, and its state (modified, read-only or non-existent)."
(concat
(when (and doom-modeline-icon doom-modeline-major-mode-icon)
(or doom-modeline--buffer-file-icon (doom-modeline-update-buffer-file-icon)))
(or doom-modeline--buffer-file-state-icon (doom-modeline-update-buffer-file-state-icon))
(or doom-modeline--buffer-file-name (doom-modeline-update-buffer-file-name))))
(if (doom-modeline--active)
(or doom-modeline--buffer-file-name (doom-modeline-update-buffer-file-name))
"%b")))
(doom-modeline-def-segment buffer-info-simple
"Display only the current buffer's name, but with fontification."