Display nerd icons in ibuffer.
This package is extracted from Centaur Emacs and leverages nerd-icons.
From melpa, M-x package-install RET nerd-icons-ibuffer RET
.
(add-hook 'ibuffer-mode-hook #'nerd-icons-ibuffer-mode)
(use-package nerd-icons-ibuffer
:ensure t
:hook (ibuffer-mode . nerd-icons-ibuffer-mode))
To display icons correctly, you should run M-x nerd-icons-install-fonts
to
install the necessary fonts.
Enjoy! 😄
;; Whether display the icons.
(setq nerd-icons-ibuffer-icon t)
;; Whether display the colorful icons.
;; It respects `nerd-icons-color-icons'.
(setq nerd-icons-ibuffer-color-icon t)
;; The default icon size in ibuffer.
(setq nerd-icons-ibuffer-icon-size 1.0)
;; Use human readable file size in ibuffer.
(setq nerd-icons-ibuffer-human-readable-size t)
;; A list of ways to display buffer lines with `nerd-icons'.
;; See `ibuffer-formats' for details.
nerd-icons-ibuffer-formats
;; Slow Rendering
;; If you experience a slow down in performance when rendering multiple icons simultaneously,
;; you can try setting the following variable
(setq inhibit-compacting-font-caches t)
If you think the it's helpful for you, please consider paying a cup of coffee for me. Thank you! 😄