From 620b1cd406c307305d44b2447c9e39209dbd13bf Mon Sep 17 00:00:00 2001 From: "asep.komarudin" Date: Thu, 23 May 2024 21:29:02 +0700 Subject: [PATCH] add: update config lualine --- lua/custom/default.lua | 2 +- lua/user/utils/lualine_component.lua | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/lua/custom/default.lua b/lua/custom/default.lua index 5bb1298..589b911 100644 --- a/lua/custom/default.lua +++ b/lua/custom/default.lua @@ -33,7 +33,7 @@ vim.g.pcode_transparent_mode = 0 -- parallelogram -- transparent -- default -vim.g.pcode_lualinetheme = "parallelogram" +vim.g.pcode_lualinetheme = "roundedall" -- 0 disable progress -- 1 lualine lsp progress -- 2 fidget progress diff --git a/lua/user/utils/lualine_component.lua b/lua/user/utils/lualine_component.lua index c1fa1e2..871c9fe 100644 --- a/lua/user/utils/lualine_component.lua +++ b/lua/user/utils/lualine_component.lua @@ -163,6 +163,16 @@ return { end, }, + path = { + "filename", + file_status = true, + path = 1, + fmt = function(str) + return "[" .. str .. "]" + end, + cond = hide_in_width, + }, + -- git branch info get_branch = function() if vim.b.gitsigns_head ~= nil then