Skip to content
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

feat: let users override icons #562

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft

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
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