feat(root): cached pretty path function for statuslines

This commit is contained in:
Folke Lemaitre
2023-10-11 22:37:28 +02:00
parent 761171a872
commit 7bbd48caa0
2 changed files with 37 additions and 2 deletions

View File

@ -138,9 +138,10 @@ return {
},
},
{ "filetype", icon_only = true, separator = "", padding = { left = 1, right = 0 } },
{ "filename", path = 1, symbols = { modified = "", readonly = "", unnamed = "" } },
-- stylua: ignore
{
function()
return Util.root.pretty_path()
end,
},
},
lualine_x = {