71 lines
1.5 KiB
Lua
71 lines
1.5 KiB
Lua
local _colors = { "DiffAdd", "DiffChange", "RedrawDebugRecompose" }
|
|
|
|
|
|
|
|
require("lualine").setup({
|
|
options = {
|
|
icons_enabled = true,
|
|
theme = 'auto',
|
|
component_separators = { left = '', right = '' },
|
|
section_separators = { left = '', right = '' },
|
|
disabled_filetypes = {
|
|
statusline = {},
|
|
winbar = {},
|
|
},
|
|
ignore_focus = {},
|
|
always_divide_middle = true,
|
|
always_show_tabline = true,
|
|
globalstatus = true,
|
|
refresh = {
|
|
statusline = 100,
|
|
tabline = 100,
|
|
winbar = 100,
|
|
}
|
|
},
|
|
sections = {
|
|
lualine_a = {
|
|
{
|
|
function()
|
|
return " "
|
|
end,
|
|
padding = { left = 0, right = 0 },
|
|
color = {},
|
|
cond = nil,
|
|
},
|
|
},
|
|
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 = {
|
|
{
|
|
function()
|
|
return " "
|
|
end,
|
|
padding = { left = 0, right = 0 },
|
|
color = {},
|
|
cond = nil,
|
|
},
|
|
},
|
|
lualine_b = { 'branch' },
|
|
lualine_c = {},
|
|
lualine_x = { 'encoding', 'filetype', 'diagnostics', 'lsp' },
|
|
lualine_y = { 'progress' },
|
|
lualine_z = { 'location' }
|
|
},
|
|
tabline = {},
|
|
winbar = {},
|
|
inactive_winbar = {},
|
|
extensions = {}
|
|
})
|