feat(nvim): show ufo foldlevel in winbar

This commit is contained in:
Price Hiller 2023-12-22 10:20:39 -06:00
parent b4d7f931ad
commit 83ae6a1435
Signed by: Price
SSH Key Fingerprint: SHA256:Y4S9ZzYphRn1W1kbJerJFO6GGsfu9O70VaBSxJO7dF8

View File

@ -694,6 +694,43 @@ return {
},
},
margin(1),
{
{
provider = seps.full.left,
hl = function()
return { fg = colors.sumiInk4, bg = utils.get_highlight("WinBar").bg }
end,
},
{
provider = function()
return (vim.b.ufo_foldlevel or vim.opt_local.foldlevel:get()) .. " "
end,
hl = {
fg = colors.fujiWhite,
bg = colors.sumiInk4,
},
},
{
provider = seps.full.left,
hl = function()
return { fg = colors.surimiOrange, bg = colors.sumiInk4 }
end,
},
{
provider = "",
hl = {
fg = colors.sumiInk0,
bg = colors.surimiOrange,
},
},
{
provider = seps.full.right,
hl = function()
return { fg = colors.surimiOrange, bg = utils.get_highlight("WinBar").bg }
end,
},
},
margin(1),
{
{
provider = seps.full.left,