Skip to content

Conversation

hasecilu
Copy link
Collaborator

@hasecilu hasecilu commented Feb 27, 2025

Previously if you wanted to change one icon across several
extensions/filenames you needed to manually override each
instance, now you can target specific icons to simplify
config file.

Basically I'm implementing this feature to match icons to
eza and lazygit, and simplify setup to avoid big config file.

config file used

Before After
image image

config file used

return {
  "nvim-tree/nvim-web-devicons",
  event = "VimEnter",
  opts = {
    override_by_icon = {
      [""] = { icon = "" },
      [""] = { icon = "" },
    },
  },
}

Probably it's also a good idea to:

  • override color

Previously if you wanted to change one icon across several
extensions/filenames you needed to manually override each
instance, now you can target specific icons to simplify
config file.
@alex-courtis
Copy link
Member

That's rather nice... we should have done this years ago.

My initial thought was dark/light variants, but that's a bigger task #540

@hasecilu hasecilu requested a review from gegoune March 2, 2025 21:09
@alex-courtis
Copy link
Member

Is this good to go @hasecilu ? Can we merge?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants