add working directory to lualine

This commit is contained in:
Michael Peters 2022-10-10 09:32:55 -07:00
parent fb3f1dc100
commit 5abd75b202

View File

@ -73,6 +73,17 @@ function M.config()
color = { fg = scolors.filename, gui = "bold" },
padding = { left = 1, right = 1 },
},
{ -- git branch
"branch",
icon = "",
color = { fg = scolors.branch, gui = "bold" },
padding = { left = 1, right = 1 },
},
{ -- working dir
function () return vim.fn.getcwd() end,
color = { fg = scolors.branch, gui = "bold" },
padding = { left = 0, right = 1 },
},
{ -- git diff
"diff",
symbols = { added = "", modified = "", removed = "" },
@ -95,12 +106,6 @@ function M.config()
},
padding = { left = 1, right = 1 },
},
{ -- git branch
"branch",
icon = "",
color = { fg = scolors.branch, gui = "bold" },
padding = { left = 1, right = 1 },
},
},
lualine_x = {
{ -- git blame