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

make the filename color like icon's color. #284

Closed
singlexyz opened this issue Apr 11, 2021 · 12 comments · May be fixed by #2996
Closed

make the filename color like icon's color. #284

singlexyz opened this issue Apr 11, 2021 · 12 comments · May be fixed by #2996
Labels
feature request PR please nvim-tree team does not have the bandwidth to implement; a PR will be gratefully appreciated QOL Quality Of Life Improvement

Comments

@singlexyz
Copy link

e.g. Make index.html filename part same to icon(orange).
截屏2021-04-12 上午7 45 26

@kyazdani42
Copy link
Member

if this is done in a clean way i wouldn't be against it, although i think it's a little overkill and would probably conflict with other thing like git highlighting and lsp diagnostics. Also the renderer.lua is getting quite big and this feature would add another good amount of code in it, maybe splitting it beforehand would make it easier.

@alex-courtis
Copy link
Member

#1131 adds colour for icons when not using nvim-web-devicons.

@alex-courtis alex-courtis added the PR please nvim-tree team does not have the bandwidth to implement; a PR will be gratefully appreciated label Apr 3, 2022
@alex-courtis
Copy link
Member

Implemented!

@kyazdani42
Copy link
Member

are you sure this feature request is not about changing the filename color ? i don't think it's implemented yet

@alex-courtis
Copy link
Member

are you sure this feature request is not about changing the filename color ? i don't think it's implemented yet

My mistake. Apologies @singlexyz

@alex-courtis alex-courtis reopened this Apr 11, 2022
@alex-courtis
Copy link
Member

This is a nice Quality Of Life improvement.

@gegoune
Copy link
Collaborator

gegoune commented Oct 16, 2022

Would that not potentially interfere with git highlighting?

@alex-courtis
Copy link
Member

Good point. We'd need to define and document a priority like diagnostic signs > git signs.

@alex-courtis alex-courtis added the QOL Quality Of Life Improvement label Oct 23, 2022
@gegoune
Copy link
Collaborator

gegoune commented Nov 8, 2023

@alex-courtis I believe priority will be implemented by yours #2455, won't it? Will your PR bring us closer to closing this issue? Is it even what we want at all (having external source (web-devicons) dictate colour of filename)?

@alex-courtis
Copy link
Member

@alex-courtis I believe priority will be implemented by yours #2455, won't it? Will your PR bring us closer to closing this issue? Is it even what we want at all (having external source (web-devicons) dictate colour of filename)?

It will allow the user to always specify a highlight group for the icon and filename. Unfortunately it doesn't cover this functionality.

devicons.get_icon does return the highlight group for the icon which we apply to the icon and could apply to the filename. We could implement that in the overhaul or a separate change.

@alex-courtis
Copy link
Member

Yet another lua/nvim-tree/renderer/decorator/

@alex-courtis
Copy link
Member

This functionality will be added via #2948

The proof of concept was successfully consumed by users. It's being built and will allow you to set the file/folder icons and the name highlights.

I'll close this one as it's fully covered there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request PR please nvim-tree team does not have the bandwidth to implement; a PR will be gratefully appreciated QOL Quality Of Life Improvement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants