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,9 +1,13 @@
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 = {},
@ -29,11 +33,18 @@ require("lualine").setup({
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.
source = nil, -- A function that works as a data source for diff.
}
},
lualine_x = { 'encoding', 'filetype', 'diagnostics', 'lsp' },
lualine_y = { 'progress' },
lualine_z = { 'location' }
}, },
inactive_sections = { inactive_sections = {
lualine_a = { lualine_a = {
@ -46,11 +57,11 @@ require("lualine").setup({
cond = nil, cond = nil,
}, },
}, },
lualine_b = {'branch'}, lualine_b = { 'branch' },
lualine_c = {'diff'}, lualine_c = {},
lualine_x = {'encoding', 'filetype', 'diagnostics', 'lsp'}, lualine_x = { 'encoding', 'filetype', 'diagnostics', 'lsp' },
lualine_y = {'progress'}, lualine_y = { 'progress' },
lualine_z = {'location'} lualine_z = { 'location' }
}, },
tabline = {}, tabline = {},
winbar = {}, winbar = {},