Skip to content

Commit

Permalink
Fix helm-x-icons-faicon for globe (#2701)
Browse files Browse the repository at this point in the history
  • Loading branch information
thierryvolpiatto committed Jan 28, 2025
1 parent ea0bce9 commit ac55ed8
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions helm-x-icons.el
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,14 @@ May use other provider than faicon if ICON-NAME is not found in faicon."
(let ((fn (helm-acase helm-x-icons-provider
(all-the-icons #'all-the-icons-faicon)
(nerd-icons #'nerd-icons-faicon))))
(if (and (eq helm-x-icons-provider 'nerd-icons)
(string= icon-name "firefox"))
(apply #'nerd-icons-faicon "nf-fa-firefox" args)
(and fn (apply fn icon-name args)))))
(when (eq helm-x-icons-provider 'nerd-icons)
(cond ((string= icon-name "firefox")
(setq fn #'nerd-icons-faicon
icon-name "nf-fa-firefox"))
((string= icon-name "globe")
(setq fn #'nerd-icons-faicon
icon-name "nf-fa-globe"))))
(and fn (apply fn icon-name args))))

(defun helm-x-icons-wicon (icon-name &rest args)
"Compatibility function for wicon.
Expand Down

0 comments on commit ac55ed8

Please sign in to comment.