nvim-web-devicons icon indicating copy to clipboard operation
nvim-web-devicons copied to clipboard

add icon astro

Open henryy-el opened this issue 2 years ago • 4 comments

henryy-el avatar Sep 02 '23 16:09 henryy-el

PR welcome.

gegoune avatar Sep 02 '23 16:09 gegoune

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

henryy-el avatar Sep 03 '23 06:09 henryy-el

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.

alex-courtis avatar Sep 03 '23 07:09 alex-courtis

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

BrunoKrugel avatar Sep 15 '23 13:09 BrunoKrugel

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

pauchiner avatar Jan 11 '24 09:01 pauchiner

Great solution, and let me make it more clearly:

  opts = {
    strict = true,
    override_by_extension = {
      ["astro"] = {
        icon = "",
        color = "#f1502f",
        name = "Astro",
      },
    },
  },

akring avatar Jan 30 '24 16:01 akring

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",
}

AlejandroSuero avatar Apr 02 '24 23:04 AlejandroSuero