nvim-tree / nvim-web-devicons

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

Compound Extensions #206

Closed alex-courtis closed 1 year ago

alex-courtis commented 1 year ago

See #191, rolled back.

Only test.js highlights but not foo.test.js

/cc nobuhikosawai

gegoune commented 1 year ago

How expensive/inefficient iterating over each . segment and comparing against available icons would be?

alex-courtis commented 1 year ago

How expensive/inefficient iterating over each . segment and comparing against available icons would be?

That sounds the simplest. More efficient than multiple string.find etc. since lua is fast at table lookups.

nobuhikosawai commented 1 year ago

I'll try to work on this again.