From e89653f4107724f53964a379337947490117a7dc Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Sun, 12 May 2024 22:08:13 +0200 Subject: [PATCH] fix(pretty_path): properly escape `%` characters --- lua/lazyvim/util/lualine.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/lazyvim/util/lualine.lua b/lua/lazyvim/util/lualine.lua index 757ddb01..3e546873 100644 --- a/lua/lazyvim/util/lualine.lua +++ b/lua/lazyvim/util/lualine.lua @@ -46,6 +46,7 @@ end ---@param hl_group? string ---@return string function M.format(component, text, hl_group) + text = text:gsub("%%", "%%%%") if not hl_group or hl_group == "" then return text end