nvim-tree / nvim-web-devicons

lua `fork` of vim-web-devicons for neovim
MIT License
1.93k stars 182 forks source link

feat: Add README icons #381

Closed DreepyYunky closed 5 months ago

DreepyYunky commented 5 months ago

READMEs (eg README.md) are special files, so giving them special icon can help distinct them from, for example, an average markdown file.

The icon is nf-md-information which I think fits since READMEs give information about the thing it's on.

alex-courtis commented 5 months ago

Holding off pending #376

DreepyYunky commented 5 months ago

Holding off pending #376

Ok.

pauchiner commented 5 months ago

@DreepyYunky i think you should also add for .rst README files, these are pretty common in python enviroments

DreepyYunky commented 5 months ago

@DreepyYunky i think you should also add for .rst README files, these are pretty common in python enviroments

I even might add for files just named README, no txt or md.

DreepyYunky commented 5 months ago

@pauchiner Added .rsts now.

alex-courtis commented 5 months ago

Sorry, I don't think we should do this: markdown and text are file types, readme is not. web-devicons only handles types, particularly those specified by languages.

That's kind of confirmed by the lack of readme icon in nerd fonts ;)

If you desire special file name handling you can use API override_by_filename