Skip to content

seagle0128/nerd-icons-ivy-rich

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nerd-icons-ivy-rich

Build Status Release Tag License MELPA MELPA Stable

Table of Contents

Display icons for all buffers in ivy.

This package is extracted from Centaur Emacs and leverages ivy-rich and nerd-icons.

Install

Manual

From melpa, M-x package-install RET nerd-icons-ivy-rich RET.

(nerd-icons-ivy-rich-mode 1)
(ivy-rich-mode 1)

Use-package

(use-package nerd-icons-ivy-rich
  :ensure t
  :init
  (nerd-icons-ivy-rich-mode 1)
  (ivy-rich-mode 1))

NOTE:

  1. nerd-icons-ivy-rich-mode depends on ivy-rich and respects ivy-rich-mode.
  2. To display icons correctly, you should run M-x nerd-icons-install-fonts to install the necessary fonts.
  3. For better performance, enable nerd-icons-ivy-rich-mode before ivy-rich-mode .
  4. Enable other packages like counsel-projectile before enabling nerd-icons-ivy-rich-mode.

Enjoy! 😄

Customize

;; Whether display the icons
(setq nerd-icons-ivy-rich-icon t)

;; Whether display the colorful icons.
;; It respects `nerd-icons-color-icons'.
(setq nerd-icons-ivy-rich-color-icon t)

;; The icon size
(setq nerd-icons-ivy-rich-icon-size 1.0)

;; Whether support project root
(setq nerd-icons-ivy-rich-project t)

;; Maximum truncation width of annotation fields.
;; This value is adjusted depending on the `window-width'.
(setq nerd-icons-ivy-rich-field-width 80)

;; Definitions for ivy-rich transformers.
;; See `ivy-rich-display-transformers-list' for details."
nerd-icons-ivy-rich-display-transformers-list

;; 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)

In counsel-describe-function, counsel-describe-variableand counsel-describe-symbol, the symbol classes will be displayed. The details are below.

Function Variable Other
f function u custom (U modified compared to global value) a face
c cooamd v variable t cl-type
C interactive-only command l local (L modified compared to default value)
m macto - obsolete
M special form
g cl-generic
p pure
s side-effect-free
@ autoloaded
! advised

Screenshots

image

image

image

Donate

If you think the it's helpful for you, please consider paying a cup of coffee for me. Thank you! 😄

Alipay      Wechat Pay

PayPal      Buy Me A Coffee

About

Excellent experience with Nerd icons for ivy/counsel.

Resources

License

Stars

Watchers

Forks

Packages

No packages published