[Bug]: bufferline custom area colors not refreshing
jackielii opened this issue · comments
Jackie Li commented
Is there an existing issue for this?
- I have searched the existing issues
What happened?
I setup an custom area like so:
{
options = {
custom_areas = {
left = function()
local result = {}
if vim.o.ft == 'vim' then
table.insert(result, { text = 'VIM', link = 'BufferLineBufferSelected' })
else
table.insert(result, { text = 'Other', link = 'BufferLineBufferVisible'})
end
return result
end
},
},
}
The texts are refreshing between 'VIM' and 'Other', but the highlights are not changing
What did you expect to happen?
the highlights change when switching between a vim file and other types of file
Config
{
options = {
custom_areas = {
left = function()
local result = {}
if vim.o.ft == 'vim' then
table.insert(result, { text = 'VIM', link = 'BufferLineBufferSelected' })
else
table.insert(result, { text = 'Other', link = 'BufferLineBufferVisible'})
end
return result
end
},
},
}
Additional Information
branch main
commit 9e8d2f6
commit
No response