mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-27 14:23:43 -05:00
Add an icon to modeline for narrowed buffers
This commit is contained in:
@@ -279,6 +279,12 @@ directory, the file name, and its state (modified, read-only or non-existent)."
|
|||||||
"circle-slash"
|
"circle-slash"
|
||||||
:face 'doom-modeline-urgent
|
:face 'doom-modeline-urgent
|
||||||
:v-adjust -0.05)
|
: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))
|
(when-let (dir-path (+doom-modeline--buffer-path))
|
||||||
(if-let (faces (or faces (if active 'doom-modeline-buffer-path)))
|
(if-let (faces (or faces (if active 'doom-modeline-buffer-path)))
|
||||||
|
Reference in New Issue
Block a user