From 5abd75b202eabac2b56bf1460fcb8c6370fa7f8e Mon Sep 17 00:00:00 2001 From: Michael Peters Date: Mon, 10 Oct 2022 09:32:55 -0700 Subject: [PATCH] add working directory to lualine --- lua/configs/lualine.lua | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/lua/configs/lualine.lua b/lua/configs/lualine.lua index 176ecb2..9d4c125 100644 --- a/lua/configs/lualine.lua +++ b/lua/configs/lualine.lua @@ -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