feat(statusline): update statusline layout
This commit is contained in:
parent
3c5dde045b
commit
d35acd0125
|
@ -1,9 +1,13 @@
|
|||
local _colors = { "DiffAdd", "DiffChange", "RedrawDebugRecompose" }
|
||||
|
||||
|
||||
|
||||
require("lualine").setup({
|
||||
options = {
|
||||
icons_enabled = true,
|
||||
theme = 'auto',
|
||||
component_separators = { left = '', right = ''},
|
||||
section_separators = { left = '', right = ''},
|
||||
component_separators = { left = '', right = '' },
|
||||
section_separators = { left = '', right = '' },
|
||||
disabled_filetypes = {
|
||||
statusline = {},
|
||||
winbar = {},
|
||||
|
@ -29,11 +33,18 @@ require("lualine").setup({
|
|||
cond = nil,
|
||||
},
|
||||
},
|
||||
lualine_b = {'branch'},
|
||||
lualine_c = {'diff'},
|
||||
lualine_x = {'encoding', 'filetype', 'diagnostics', 'lsp'},
|
||||
lualine_y = {'progress'},
|
||||
lualine_z = {'location'}
|
||||
lualine_b = { 'branch' },
|
||||
lualine_c = {
|
||||
{
|
||||
'diff',
|
||||
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 = {
|
||||
lualine_a = {
|
||||
|
@ -46,11 +57,11 @@ require("lualine").setup({
|
|||
cond = nil,
|
||||
},
|
||||
},
|
||||
lualine_b = {'branch'},
|
||||
lualine_c = {'diff'},
|
||||
lualine_x = {'encoding', 'filetype', 'diagnostics', 'lsp'},
|
||||
lualine_y = {'progress'},
|
||||
lualine_z = {'location'}
|
||||
lualine_b = { 'branch' },
|
||||
lualine_c = {},
|
||||
lualine_x = { 'encoding', 'filetype', 'diagnostics', 'lsp' },
|
||||
lualine_y = { 'progress' },
|
||||
lualine_z = { 'location' }
|
||||
},
|
||||
tabline = {},
|
||||
winbar = {},
|
||||
|
|
Loading…
Reference in New Issue