nvim-tree / nvim-web-devicons

lua `fork` of vim-web-devicons for neovim
MIT License
1.95k stars 183 forks source link

add icon astro #300

Closed henryy-el closed 3 months ago

gegoune commented 10 months ago

PR welcome.

henryy-el commented 10 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

alex-courtis commented 10 months ago

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.

BrunoKrugel commented 10 months ago

Already requested at nerdfonts https://github.com/ryanoasis/nerd-fonts/issues/1172

pauchiner commented 6 months ago

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:

Captura de pantalla 2024-01-11 a las 10 49 02

I already implemented this in my nvim configuration and looks like this:

Captura de pantalla 2024-01-11 a las 10 50 20
akring commented 5 months ago

Great solution, and let me make it more clearly:

  opts = {
    strict = true,
    override_by_extension = {
      ["astro"] = {
        icon = "",
        color = "#f1502f",
        name = "Astro",
      },
    },
  },
AlejandroSuero commented 3 months ago

I am using this one as my icon.

Nerd Font ArcoLinux icon

This is how it looks implemented.

Astro icon in use
astro = {
 icon = "",
 color = "#ffffff",
 name = "Astro",
}