diff --git a/lua/lualine/components/filetype.lua b/lua/lualine/components/filetype.lua index 89b74d2..120838a 100644 --- a/lua/lualine/components/filetype.lua +++ b/lua/lualine/components/filetype.lua @@ -30,6 +30,7 @@ function M:apply_icon() local ok, devicons = pcall(require, 'nvim-web-devicons') if ok then local f_name, f_extension = vim.fn.expand '%:t', vim.fn.expand '%:e' + f_extension = f_extension ~= '' and f_extension or vim.bo.filetype icon, icon_highlight_group = devicons.get_icon(f_name, f_extension) if icon and self.options.colored then