feat(lualine): update to current LazyVim setup

This commit is contained in:
Michel 2023-10-16 10:47:00 +02:00
parent cb5a8240cf
commit 0ae89e817e

View File

@ -1,5 +1,7 @@
vim.o.background = "dark" vim.o.background = "dark"
local Util = require("lazyvim.util")
return { return {
{ {
"LazyVim/LazyVim", "LazyVim/LazyVim",
@ -48,13 +50,9 @@ return {
opts.sections = { opts.sections = {
lualine_a = { "mode" }, lualine_a = { "mode" },
lualine_b = { lualine_b = {
Util.lualine.root_dir(),
{ "filetype", icon_only = true, separator = "", padding = { left = 1, right = 0 } }, { "filetype", icon_only = true, separator = "", padding = { left = 1, right = 0 } },
{ { Util.lualine.pretty_path() },
"filename",
path = 1,
separator = "",
symbols = { modified = "", readonly = "", unnamed = "" },
},
}, },
lualine_c = { lualine_c = {
{ {
@ -68,14 +66,11 @@ return {
}, },
}, },
lualine_x = opts.sections.lualine_x, lualine_x = opts.sections.lualine_x,
lualine_z = opts.sections.lualine_y,
lualine_y = { lualine_y = {
{ "fileformat", separator = "", padding = { left = 1, right = 0 } }, { "fileformat", separator = "", padding = { left = 1, right = 0 } },
"encoding", "encoding",
}, },
lualine_z = {
"progress",
{ "location", padding = { left = 0, right = 1 } },
},
} }
end, end,
}, },