feat(statusline): update statusline layout

This commit is contained in:
doryan 2025-04-13 00:20:34 +04:00
parent 3c5dde045b
commit d35acd0125

View File

@ -1,59 +1,70 @@
local _colors = { "DiffAdd", "DiffChange", "RedrawDebugRecompose" }
require("lualine").setup({ require("lualine").setup({
options = { options = {
icons_enabled = true, icons_enabled = true,
theme = 'auto', theme = 'auto',
component_separators = { left = '', right = ''}, component_separators = { left = '', right = '' },
section_separators = { left = '', right = ''}, section_separators = { left = '', right = '' },
disabled_filetypes = { disabled_filetypes = {
statusline = {}, statusline = {},
winbar = {}, winbar = {},
}, },
ignore_focus = {}, ignore_focus = {},
always_divide_middle = true, always_divide_middle = true,
always_show_tabline = true, always_show_tabline = true,
globalstatus = true, globalstatus = true,
refresh = { refresh = {
statusline = 100, statusline = 100,
tabline = 100, tabline = 100,
winbar = 100, winbar = 100,
} }
}, },
sections = { sections = {
lualine_a = { lualine_a = {
{ {
function() function()
return "" return ""
end, end,
padding = { left = 0, right = 0 }, padding = { left = 0, right = 0 },
color = {}, color = {},
cond = nil, cond = nil,
}, },
}, },
lualine_b = {'branch'}, lualine_b = { 'branch' },
lualine_c = {'diff'}, lualine_c = {
lualine_x = {'encoding', 'filetype', 'diagnostics', 'lsp'}, {
lualine_y = {'progress'}, 'diff',
lualine_z = {'location'} colored = true, -- Displays a colored diff status if set to true
}, symbols = { added = '', modified = '', removed = '' }, -- Changes the symbols used by the diff.
inactive_sections = { source = nil, -- A function that works as a data source for diff.
lualine_a = { }
{ },
function() lualine_x = { 'encoding', 'filetype', 'diagnostics', 'lsp' },
return "" lualine_y = { 'progress' },
end, lualine_z = { 'location' }
padding = { left = 0, right = 0 }, },
color = {}, inactive_sections = {
cond = nil, lualine_a = {
}, {
}, function()
lualine_b = {'branch'}, return ""
lualine_c = {'diff'}, end,
lualine_x = {'encoding', 'filetype', 'diagnostics', 'lsp'}, padding = { left = 0, right = 0 },
lualine_y = {'progress'}, color = {},
lualine_z = {'location'} cond = nil,
}, },
tabline = {}, },
winbar = {}, lualine_b = { 'branch' },
inactive_winbar = {}, lualine_c = {},
extensions = {} lualine_x = { 'encoding', 'filetype', 'diagnostics', 'lsp' },
lualine_y = { 'progress' },
lualine_z = { 'location' }
},
tabline = {},
winbar = {},
inactive_winbar = {},
extensions = {}
}) })