Temp fix a nerd-icons-completion bug

This commit is contained in:
Alexander Rosenberg 2024-07-12 18:54:00 -07:00
parent e9b9804f04
commit 7d3406378f
Signed by: Zander671
GPG Key ID: 5FD0394ADBD72730

11
init.el
View File

@ -1421,6 +1421,17 @@ buffers `helpful--sym' to `my/helpful-symbol-history'."
(use-package nerd-icons) (use-package nerd-icons)
(use-package nerd-icons-completion (use-package nerd-icons-completion
:config :config
;; Temp. fix rainstormstudio/nerd-icons-completion#11
(define-minor-mode nerd-icons-completion-mode
"Add icons to completion candidates."
:global t
(if nerd-icons-completion-mode
(progn
(advice-add #'completion-metadata-get :around #'nerd-icons-completion-completion-metadata-get)
(advice-add (compat-function completion-metadata-get) :around #'nerd-icons-completion-completion-metadata-get))
(progn
(advice-remove #'completion-metadata-get #'nerd-icons-completion-completion-metadata-get)
(advice-remove (compat-function completion-metadata-get) #'nerd-icons-completion-completion-metadata-get))))
(nerd-icons-completion-mode)) (nerd-icons-completion-mode))
(use-package nerd-icons-dired (use-package nerd-icons-dired
:hook (dired-mode . nerd-icons-dired-mode)) :hook (dired-mode . nerd-icons-dired-mode))