feat(nvim): add wrap & spell status in winbar
Some checks failed
Check Formatting of Files / Check-Formatting (push) Failing after 41s

This commit is contained in:
Price Hiller 2024-10-30 00:10:48 -05:00
parent 2769e54b4e
commit d98986006b
Signed by: Price
GPG Key ID: C3FADDE7A8534BEB

View File

@ -542,6 +542,102 @@ return {
{
provider = "%=",
},
{
{
provider = seps.full.left,
hl = function()
return { fg = colors.sumiInk4, bg = utils.get_highlight("WinBar").bg }
end,
},
{
provider = function()
return "spell "
end,
hl = {
fg = colors.fujiWhite,
bg = colors.sumiInk4,
},
},
{
{
provider = seps.full.left,
hl = function()
return {
fg = vim.opt_local.spell:get() and colors.springGreen or colors.peachRed,
bg = colors.sumiInk4,
}
end,
},
{
provider = function()
return vim.opt_local.spell:get() and "" or ""
end,
hl = function()
return {
fg = colors.sumiInk0,
bg = vim.opt_local.spell:get() and colors.springGreen or colors.peachRed,
}
end,
},
{
provider = seps.full.right .. " ",
hl = function()
return {
fg = vim.opt_local.spell:get() and colors.springGreen or colors.peachRed,
bg = utils.get_highlight("WinBar").bg,
}
end,
},
},
},
{
{
provider = seps.full.left,
hl = function()
return { fg = colors.sumiInk4, bg = utils.get_highlight("WinBar").bg }
end,
},
{
provider = function()
return "wrap "
end,
hl = {
fg = colors.fujiWhite,
bg = colors.sumiInk4,
},
},
{
{
provider = seps.full.left,
hl = function()
return {
fg = vim.opt_local.wrap:get() and colors.springGreen or colors.peachRed,
bg = colors.sumiInk4,
}
end,
},
{
provider = function()
return vim.opt_local.wrap:get() and "" or ""
end,
hl = function()
return {
fg = colors.sumiInk0,
bg = vim.opt_local.wrap:get() and colors.springGreen or colors.peachRed,
}
end,
},
{
provider = seps.full.right .. " ",
hl = function()
return {
fg = vim.opt_local.wrap:get() and colors.springGreen or colors.peachRed,
bg = utils.get_highlight("WinBar").bg,
}
end,
},
},
},
{
update = {
"BufAdd",