Temp fix a nerd-icons-completion bug
This commit is contained in:
parent
e9b9804f04
commit
7d3406378f
11
init.el
11
init.el
@ -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))
|
||||||
|
Loading…
Reference in New Issue
Block a user