Open georgtree opened 3 weeks ago
Same issue. On my side with an existing init.
I found out that the
(defcustom centaur-tabs-icon-type (and centaur-tabs-set-icons
(or (require 'all-the-icons nil t)
(require 'nerd-icons nil t)))
"Icon type; it should be one of all-the-icons' and
nerd-icons'."
:group 'centaur-tabs
:type 'symbol
:set
(lambda (k v)
(pcase v
('all-the-icons
(unless (require 'all-the-icons nil t)
(setq v nil)))
('nerd-icons
(unless (require 'nerd-icons nil t)
(setq v nil)))
('type
(if (require 'all-the-icons nil t)
(setq v 'all-the-icons)
(setq v nil))))
(set k v)))
returns "nil" although (require 'all-the-icons nil t) return 'all-the-icons
if i overwrite the variable with (customize-set-variable 'centaur-tabs-icon-type 'all-the-icons) the icons appear.
Unfortunatly my elisp skill is to low to see the issue here :-( Till a fix will come i use the overwrite as workaround
thx and BR Dennis
(defcustom centaur-tabs-icon-type
(cond
((and centaur-tabs-set-icons (require 'all-the-icons nil t)) 'all-the-icons)
((and centaur-tabs-set-icons (require 'nerd-icons nil t)) 'nerd-icons)
(t nil))
"Icon type; it should be one of all-the-icons' or
nerd-icons'."
:group 'centaur-tabs
:type 'symbol
:set (lambda (k v)
(set k
(pcase v
('all-the-icons (if (require 'all-the-icons nil t) 'all-the-icons nil))
('nerd-icons (if (require 'nerd-icons nil t) 'nerd-icons nil))
(_ nil)))))
Make sure centaur-tabs-icon-type
is set to a valid value. 🤔
Yes if i customize the ' centaur-tabs-icon-type' then it works, but that way is not described in the documentation and from my point of view it's not the intention of the developer. This variable has an autodetection of 'all-the-icons' and this doesn't work proper. Maybe there is a race condition or what ever... By the way the pcase function has no default value.
Documented in 46fdeb359dbbcbb1bd2ddce3c1e6fa694bf8e68f.
Hello! Icons doesn't work, all-the-icons is installed and works in treemacs, configs:
and
Linux Ubuntu