famiu/feline.nvim

[Bug] file_info provider not displaying the correct icons for .ts/.js files

igolt opened this issue · 4 comments

igolt commented

Neovim version
NVIM v0.7.0
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by builduser

Features: +acl +iconv +tui
See ":help feature-compile"

Feline version
master branch (commit: 79f5e9e)

Describe the bug
file_info does not display the correct icons for typescript/javascript files.

To Reproduce
You can use the minimal setup require('feline').setup() and open .js/.ts file

I think it can be fixed by changing:

lua/feline/providers/file.lua (line 66)
local extension = bo.filetype
to
local extension = fn.expand('%:e')

Thanks in advance

famiu commented

Can you reproduce this issue on the develop branch?

igolt commented

No, it works as expected on the develop branch.

famiu commented

Alright, I'll try to resolve the issue in the master branch within a few days. Until then, please use the develop branch. Sorry for the incovenience.

famiu commented

Should be fixed now