feat(file-explorer): remove broken icon on nvim tree statusline
This commit is contained in:
parent
7e3ce5094b
commit
25060f1713
1 changed files with 9 additions and 3 deletions
|
@ -415,7 +415,9 @@ gls.short_line_left = {
|
|||
end,
|
||||
'FileIcon',
|
||||
},
|
||||
condition = condition.buffer_not_empty,
|
||||
condition = function()
|
||||
return condition.buffer_not_empty() and vim.bo.filetype ~= 'NvimTree'
|
||||
end,
|
||||
highlight = {
|
||||
require('galaxyline.providers.fileinfo').get_file_icon,
|
||||
colors.bg,
|
||||
|
@ -425,14 +427,18 @@ gls.short_line_left = {
|
|||
{
|
||||
FilePathShort = {
|
||||
provider = FilePathShortProvider,
|
||||
condition = condition.buffer_not_empty,
|
||||
condition = function()
|
||||
return condition.buffer_not_empty() and vim.bo.filetype ~= 'NvimTree'
|
||||
end,
|
||||
highlight = { colors.white, colors.bg },
|
||||
},
|
||||
},
|
||||
{
|
||||
FileNameShort = {
|
||||
provider = 'FileName',
|
||||
condition = condition.buffer_not_empty,
|
||||
condition = function()
|
||||
return condition.buffer_not_empty() and vim.bo.filetype ~= 'NvimTree'
|
||||
end,
|
||||
highlight = { colors.white, colors.bg },
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue