-
Notifications
You must be signed in to change notification settings - Fork 201
change only icon color #444
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Yes, that would be useful. It seems that you would need to get first, change then set. |
This should be achievable today with what Alex is suggesting. Something like: require'nvim-web-devicons'.get_icons()['a'] or require'nvim-web-devicons'.get_icons_by_filename()['webpack'] can be used to get icon's table which can be modified however you like and returned with https://github.com/nvim-tree/nvim-web-devicons?tab=readme-ov-file#set-an-icon. I haven't tested it. @zhengpd Would that be sufficient for your need? @alex-courtis Or do we want to introduce API to retrieve single icon only? |
That sounds good; it's probably what should have been done instead of returning icon/higroup. It'll need a different name; |
We could unify |
That'd do it. Honestly, I want to rewrite the thing (unifying the API) as it's complex/fragile. Needs unit tests before attempting that... |
It would be nice if the icon can change only color with something like
require"nvim-web-devicons".set_icon_color("rb", "#00ff00")
The text was updated successfully, but these errors were encountered: