Looks like nvim-web-devicons gets confused with you use more than one period for the extension in a file name. I would expect it to know that it should apply the same icon to .ts files as it does for test.ts files, but it doesn't. You have to add test.ts to the config or it will not apply. To make it work I have to do something like this:
return {
'nvim-tree/nvim-web-devicons',
dependencies = {
'catppuccin/nvim',
},
config = function()
local icons = require('nvim-web-devicons')
local palette = require('catppuccin.palettes').get_palette('mocha')
icons.setup({
override = {
ts = {
color = palette.blue,
icon = '',
name = 'Ts',
},
['test.ts'] = {
color = palette.blue,
icon = '',
name = 'Test.ts',
},
}
})
icons.set_default_icon('')
end,
}
Here's what it looks like if I would take the test.ts configuration out:

Looks like nvim-web-devicons gets confused with you use more than one period for the extension in a file name. I would expect it to know that it should apply the same icon to
.tsfiles as it does fortest.tsfiles, but it doesn't. You have to addtest.tsto the config or it will not apply. To make it work I have to do something like this:Here's what it looks like if I would take the

test.tsconfiguration out: