From 54b963dd05b9939af76d5245e69e13ae95b14842 Mon Sep 17 00:00:00 2001 From: robin Date: Wed, 17 Jun 2026 22:43:29 +0200 Subject: [PATCH] lylla: fix winbar char hl --- config/config/lylla.lua | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/config/config/lylla.lua b/config/config/lylla.lua index 077b8eb..3aa8d86 100644 --- a/config/config/lylla.lua +++ b/config/config/lylla.lua @@ -34,7 +34,11 @@ if vim.env.TERM == "linux" then end local function to_camel(s) - return string.gsub(string.gsub(s, "^(%a)", string.upper), "_(%a)", string.upper) + return string.gsub( + string.gsub(s, "^(%a)", string.upper), + "_(%a)", + string.upper + ) end local _hls = {} @@ -174,7 +178,7 @@ lylla.setup({ " ", }, winbar = { - { string.format("%s ", winbarprefix), "SpecialChar" }, + { { string.format("%s ", winbarprefix), "SpecialChar" } }, lylla.component(function() return { utils.getfilepath(), @@ -217,9 +221,12 @@ lylla.setup({ return end local winhl = (t_iscurrent and w_iscurrent) and hls.cur or hls.tab - local winhl_rev = (t_iscurrent and w_iscurrent) and hls.cur_rev or hls.tab_rev + local winhl_rev = (t_iscurrent and w_iscurrent) and hls.cur_rev + or hls.tab_rev local name = vim.fn.bufname(buf) - local winstr = string.sub(name, 1, 1) == "/" and vim.fs.basename(name) or name + local winstr = string.sub(name, 1, 1) == "/" + and vim.fs.basename(name) + or name return { { tl_left_sep, winhl_rev }, { string.format(" %s ", winstr), winhl }, -- 2.51.2