parent
950b73e18f
commit
2bb2e4889b
1 changed files with 2 additions and 5 deletions
|
@ -133,17 +133,14 @@ local FileIcon = {
|
|||
init = function(self)
|
||||
local filename = self.filename;
|
||||
local extension = vim.fn.fnamemodify(filename, ':e');
|
||||
self.icon, self.icon_color =
|
||||
require('nvim-web-devicons').get_icon_color(filename, extension, { default = true });
|
||||
self.icon, _ = require('nvim-web-devicons').get_icon(filename, extension, { default = true });
|
||||
end,
|
||||
|
||||
provider = function(self)
|
||||
return self.icon and (self.icon .. ' ');
|
||||
end,
|
||||
|
||||
hl = function(self)
|
||||
return { fg = self.icon_color };
|
||||
end,
|
||||
hl = { fg = utils.get_highlight('Directory').fg },
|
||||
};
|
||||
|
||||
local FileName = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue