fix(nvim): make heirline status file flags show per file
All checks were successful
Check Formatting of Files / Check-Formatting (push) Successful in 1m18s

This commit is contained in:
Price Hiller 2024-05-19 12:57:05 -05:00
parent d9b5900da2
commit 3595540b6a
Signed by: Price
GPG Key ID: C3FADDE7A8534BEB

View File

@ -348,15 +348,15 @@ return {
-- also, we are adding a nice icon for terminal buffers.
local StatusLineFileFlags = {
{
condition = function()
return vim.bo.modified
condition = function(self)
return vim.bo[self.bufnr].modified
end,
provider = "",
hl = { fg = colors.springGreen },
},
{
condition = function()
return not vim.bo.modifiable or vim.bo.readonly
condition = function(self)
return not vim.bo[self.bufnr].modifiable or vim.bo[self.bufnr].readonly
end,
provider = "",
hl = { fg = colors.roninYellow },