diff --git a/modules/nvim/config/lua/plugins/lualine.lua b/modules/nvim/config/lua/plugins/lualine.lua index a52da87..538dbb7 100644 --- a/modules/nvim/config/lua/plugins/lualine.lua +++ b/modules/nvim/config/lua/plugins/lualine.lua @@ -9,10 +9,36 @@ return { }, winbar = {}, sections = { - lualine_a = { "mode" }, - lualine_b = { "branch" }, - lualine_c = { "diff" }, - lualine_x = { "diagnostics" }, + lualine_a = { + { + "mode", + fmt = function(str) + return str:sub(1, 1) + end, + }, + }, + lualine_b = { + { + "filename", + file_status = true, + newfile_status = false, + path = 1, -- 0: Just the filename + -- 1: Relative path + -- 2: Absolute path + -- 3: Absolute path, with tilde as the home directory + -- 4: Filename and parent dir, with tilde as the home directory + + shorting_target = 120, + symbols = { + modified = "[+]", -- Text to show when the file is modified. + readonly = "[-]", -- Text to show when the file is non-modifiable or readonly. + unnamed = "[No Name]", -- Text to show for unnamed buffers. + newfile = "[New]", -- Text to show for newly created file before first write + }, + }, + }, + lualine_c = {}, + lualine_x = { "branch", "diff", "diagnostics" }, lualine_y = { "location" }, lualine_z = { "filetype" }, },