add working directory to lualine
This commit is contained in:
parent
fb3f1dc100
commit
5abd75b202
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user