feat(lualine): add filepath to lualine

This commit is contained in:
Oliver
2025-04-23 14:30:39 +02:00
parent 248c1cfa47
commit 6834652c20
2 changed files with 26 additions and 10 deletions

View File

@@ -1,11 +1,27 @@
return { return {
'nvim-lualine/lualine.nvim', "nvim-lualine/lualine.nvim",
requires = { 'nvim-tree/nvim-web-devicons', opt = true }, event = "VeryLazy",
config = function () requires = { "nvim-tree/nvim-web-devicons", opt = true },
require('lualine').setup({ opts = {
options = { options = {
theme = 'ayu_mirage' theme = "ayu_mirage",
} },
}) section_separators = { left = "", right = "" },
end component_separators = { left = "", right = "" },
sections = {
lualine_a = { "mode" },
lualine_b = { "branch", "diff", "diagnostics" },
lualine_c = {
{
"filename",
file_status = true,
path = 1,
shorting_target = 40,
},
},
lualine_x = { "filetype" },
lualine_y = { "progress" },
lualine_z = { "location" },
},
},
} }

View File

@@ -20,5 +20,5 @@ return {
} }
}) })
end, end,
requires = { { 'hoob3rt/lualine.nvim', opt=true }, {'kyazdani42/nvim-web-devicons', opt = true} } requires = { {'kyazdani42/nvim-web-devicons', opt = true} }
} }