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,
|
end,
|
||||||
'FileIcon',
|
'FileIcon',
|
||||||
},
|
},
|
||||||
condition = condition.buffer_not_empty,
|
condition = function()
|
||||||
|
return condition.buffer_not_empty() and vim.bo.filetype ~= 'NvimTree'
|
||||||
|
end,
|
||||||
highlight = {
|
highlight = {
|
||||||
require('galaxyline.providers.fileinfo').get_file_icon,
|
require('galaxyline.providers.fileinfo').get_file_icon,
|
||||||
colors.bg,
|
colors.bg,
|
||||||
|
@ -425,14 +427,18 @@ gls.short_line_left = {
|
||||||
{
|
{
|
||||||
FilePathShort = {
|
FilePathShort = {
|
||||||
provider = FilePathShortProvider,
|
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 },
|
highlight = { colors.white, colors.bg },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
FileNameShort = {
|
FileNameShort = {
|
||||||
provider = 'FileName',
|
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 },
|
highlight = { colors.white, colors.bg },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Reference in a new issue