Closed henryy-el closed 3 months ago
Hello nvim-web-devicons team,
I am an active Neovim user and frequently use the nvim-web-devicons within my workflow. Recently, I have begun working with Astro - a modern web development framework, and noticed that we lack a representative icon for .astro files.
There's a growing number of developers adopting Astro, and I believe that adding an icon for .astro files would enhance the experience for these users.
If the team requires assistance in designing or sourcing an appropriate icon, I'm more than happy to contribute. I hope we can incorporate this icon into the library to offer a more comprehensive user experience.
Thank you for considering this request!
Warm regards, henry
nvim-web-devicons can only work with the icons provided by your terminal's font, specifically https://www.nerdfonts.com/
A quick look didn't reveal an icon, it looks like you'll need to source one and request to add it.
Already requested at nerdfonts https://github.com/ryanoasis/nerd-fonts/issues/1172
We all know that until nerd fonts implements a glyph for astro, a PR cannot be made, but temporarily a solution can be given with the rocket glyph already available:
I already implemented this in my nvim configuration and looks like this:
Great solution, and let me make it more clearly:
opts = {
strict = true,
override_by_extension = {
["astro"] = {
icon = "",
color = "#f1502f",
name = "Astro",
},
},
},
I am using this one as my icon.
This is how it looks implemented.
astro = {
icon = "",
color = "#ffffff",
name = "Astro",
}
PR welcome.