config.nvim/lua/plugins/statusline.lua
2024-04-27 14:25:22 +08:00

34 lines
603 B
Lua

require('lualine').setup {
options = {
icons_enabled = true,
theme = 'auto',
component_separators = "",
section_separators = "",
},
sections = {
lualine_a = { 'mode' },
lualine_b = {
'branch',
},
lualine_c = {
{ 'filename', path = 1 },
'diff',
},
lualine_x = { 'encoding', 'fileformat', {
'filetype',
icon_only = true
} },
lualine_y = { 'progress' },
lualine_z = { 'location' }
},
inactive_sections = {
lualine_a = {},
lualine_b = {},
lualine_c = { 'filename' },
lualine_x = { 'location' },
lualine_y = {},
lualine_z = {}
},
extensions = {}
}