feat(lualine): pretty_path now highlights file basename when modified

This commit is contained in:
Folke Lemaitre
2023-10-15 22:37:49 +02:00
parent 782fe0bef0
commit 8af7309c7e
4 changed files with 69 additions and 37 deletions

View File

@ -131,7 +131,9 @@ return {
sections = {
lualine_a = { "mode" },
lualine_b = { "branch" },
lualine_c = {
Util.lualine.root_dir(),
{
"diagnostics",
symbols = {
@ -142,11 +144,7 @@ return {
},
},
{ "filetype", icon_only = true, separator = "", padding = { left = 1, right = 0 } },
{
function()
return Util.root.pretty_path()
end,
},
{ Util.lualine.pretty_path() },
},
lualine_x = {
-- stylua: ignore