feat(statusline): update statusline layout
This commit is contained in:
parent
3c5dde045b
commit
d35acd0125
|
@ -1,3 +1,7 @@
|
||||||
|
local _colors = { "DiffAdd", "DiffChange", "RedrawDebugRecompose" }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
require("lualine").setup({
|
require("lualine").setup({
|
||||||
options = {
|
options = {
|
||||||
icons_enabled = true,
|
icons_enabled = true,
|
||||||
|
@ -30,7 +34,14 @@ require("lualine").setup({
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
lualine_b = { 'branch' },
|
lualine_b = { 'branch' },
|
||||||
lualine_c = {'diff'},
|
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_x = { 'encoding', 'filetype', 'diagnostics', 'lsp' },
|
||||||
lualine_y = { 'progress' },
|
lualine_y = { 'progress' },
|
||||||
lualine_z = { 'location' }
|
lualine_z = { 'location' }
|
||||||
|
@ -47,7 +58,7 @@ require("lualine").setup({
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
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' }
|
||||||
|
|
Loading…
Reference in New Issue