nvim-tree / nvim-web-devicons

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

feat(#168): add Dockerfile icon #289

Closed wael-jaber closed 11 months ago

wael-jaber commented 11 months ago

@alex-courtis hello , sorry I seen the pr and I just assumed it isn't there but now I see what is my problem image it isn't showing because it has an extension format (.prod) in my case. then maybe this will be a feature request to have last fall back to compare to substring (starting from the start of the string) however that can cause some side effect. wdyt ?

alex-courtis commented 11 months ago

The filetype may be set for the file via a :help modeline e.g. # vim:ft=dockerfile

web-devicons can fetch the icon for that filetype.

Note that we don't intend to add any further support for pattern/string matching of files beyond name and extension, as a performance consideration.

wael-jaber commented 11 months ago

@alex-courtis , thanks for clarification then I will close this.