From 83ae6a1435a68e8193d10de7454d01e8e4a099a1 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Fri, 22 Dec 2023 10:20:39 -0600 Subject: [PATCH] feat(nvim): show ufo foldlevel in winbar --- .../nvim/lua/plugins/configs/heirline.lua | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/dots/.config/nvim/lua/plugins/configs/heirline.lua b/dots/.config/nvim/lua/plugins/configs/heirline.lua index 42ed87a7..b0ea166b 100644 --- a/dots/.config/nvim/lua/plugins/configs/heirline.lua +++ b/dots/.config/nvim/lua/plugins/configs/heirline.lua @@ -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,