Add icons to completion candidates using the built in completion metadata functions.
This package can be used with the default completions buffer:
Or with a completion framework such as Vertico:
Supports many more icons than the original and has a few QOL improvements (adjusted icon sizes, aligning, etc.)
This package only supports Emacs version 26.1 and above.
It requires all-the-icons.
This package can be installed from MELPA, or by cloning it and putting it in the load path.
Add the following to your init-file:
(all-the-icons-completion-mode)
If you want to use it as an addon to marginalia-mode
, add the following to your init-file:
(add-hook 'marginalia-mode-hook #'all-the-icons-completion-marginalia-setup)
This will ensure that it is on when marginalia-mode
is on and is off when it’s off.
Thanks to @iyefrat for creating the original version of this package.
Thanks to @seagle0128 for creating all-the-icons-ivy-rich, code from which was adapted to this package for QOL improvements.
Thanks to @minad and @noctuid for getting the ball rolling on the functions used in this package.