Open bricka opened 1 year ago
I have made a custom entry in my nerd-icons configuration:
nerd-icons
(use-package nerd-icons :config (add-to-list 'nerd-icons-regexp-icon-alist '("^gradlew\\(.bat\\)?$" nerd-icons-sucicon "nf-seti-gradle" :face nerd-icons-silver)))
When I run nerd-icons-icon-for-file, I get this new icon:
nerd-icons-icon-for-file
However, in my Treemacs, I still see the default icon:
I think that the reason is that https://github.com/rainstormstudio/treemacs-nerd-icons/blob/main/treemacs-nerd-icons.el#L51 is only copying the nerd-icons-extension-icon-alist list, and not nerd-icons-regexp-icon-alist.
nerd-icons-extension-icon-alist
nerd-icons-regexp-icon-alist
Thanks!
yes the thing is treemacs does not support regexp for extension recognition. I think the best you can do is to add it to nerd-icons-extension-icon-alist without using regexp.
I have made a custom entry in my
nerd-icons
configuration:When I run
nerd-icons-icon-for-file
, I get this new icon:However, in my Treemacs, I still see the default icon:
I think that the reason is that https://github.com/rainstormstudio/treemacs-nerd-icons/blob/main/treemacs-nerd-icons.el#L51 is only copying the
nerd-icons-extension-icon-alist
list, and notnerd-icons-regexp-icon-alist
.Thanks!