mirror of
https://github.com/vale981/doom-modeline
synced 2025-03-05 09:21:38 -05:00
Refactor.
This commit is contained in:
parent
1833cbfeec
commit
ee92cfa0da
1 changed files with 6 additions and 7 deletions
|
@ -216,13 +216,12 @@ buffer where knowing the current project directory is important."
|
|||
(let* ((active (doom-modeline--active))
|
||||
(face (if active 'doom-modeline-buffer-path 'mode-line-inactive)))
|
||||
(concat (doom-modeline-spc)
|
||||
(cond (doom-modeline-major-mode-icon
|
||||
(concat (doom-modeline-icon
|
||||
'octicon "file-directory" "🖿" ""
|
||||
:face face :v-adjust -0.05 :height 1.25)
|
||||
(doom-modeline-spc))))
|
||||
(propertize (abbreviate-file-name default-directory)
|
||||
'face face))))
|
||||
(and doom-modeline-major-mode-icon
|
||||
(concat (doom-modeline-icon
|
||||
'octicon "file-directory" "🖿" ""
|
||||
:face face :v-adjust -0.05 :height 1.25)
|
||||
(doom-modeline-vspc)))
|
||||
(propertize (abbreviate-file-name default-directory) 'face face))))
|
||||
|
||||
;;
|
||||
(defvar-local doom-modeline--buffer-file-icon nil)
|
||||
|
|
Loading…
Add table
Reference in a new issue