Add an icon to modeline for narrowed buffers
This commit is contained in:
parent
8f22c64e80
commit
ba7bc03cf6
1 changed files with 6 additions and 0 deletions
|
@ -279,6 +279,12 @@ directory, the file name, and its state (modified, read-only or non-existent)."
|
|||
"circle-slash"
|
||||
:face 'doom-modeline-urgent
|
||||
:v-adjust -0.05)
|
||||
" "))
|
||||
((buffer-narrowed-p)
|
||||
(concat (all-the-icons-octicon
|
||||
"fold"
|
||||
:face 'doom-modeline-warning
|
||||
:v-adjust -0.05)
|
||||
" ")))
|
||||
(when-let (dir-path (+doom-modeline--buffer-path))
|
||||
(if-let (faces (or faces (if active 'doom-modeline-buffer-path)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue