Skip to content

Icon for folders #105

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

Open
melsiir opened this issue Jan 7, 2022 · 3 comments
Open

Icon for folders #105

melsiir opened this issue Jan 7, 2022 · 3 comments

Comments

@melsiir
Copy link

melsiir commented Jan 7, 2022

Is there any way to set icon for folder depending on it's name that will be very useful

@kyazdani42
Copy link
Member

we don't manage folders in this repository unfortunately. This would depend on the plugin you are using.

@sergeyiksanov
Copy link

There is a way to implement what you want. Unfortunately, I didn't find anything about it in the documentation, but I wanted to do it too. So I wanted to fork it and add it myself, but when I studied the code, it turned out that it already exists. To do this, you should include the following in nvim-tree: render -> icons -> web_devicons -> folder = {enable = true, color = true}. Then, when overriding via override, the changes will also apply to folders.

Is there any way to set icon for folder depending on it's name that will be very useful

@alex-courtis
Copy link
Member

You can specify custom icons based on name etc. via an nvim-tree Decorator

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

No branches or pull requests

5 participants