config.nvim/lua/plugins/statusline.lua
Ryan d39f6a98db
Update lualine
Signed-off-by: Ryan <ryan@alien.gov>
2023-11-30 15:21:17 +08:00

44 lines
857 B
Lua

require 'lualine'.setup {
options = {
icons_enabled = true,
theme = 'gruvbox',
component_separators = { '|', '|' },
section_separators = { '', '' },
disabled_filetypes = {}
},
sections = {
lualine_a = { 'mode' },
lualine_b = {
'branch',
},
lualine_c = {
{
'filename',
path = 1
},
'diff',
},
lualine_x = { 'encoding', 'fileformat', 'filetype' },
lualine_y = { 'progress' },
lualine_z = { 'location' }
},
inactive_sections = {
lualine_a = {},
lualine_b = {},
lualine_c = { 'filename' },
lualine_x = { 'location' },
lualine_y = {},
lualine_z = {}
},
-- Tabline is broken, disable for now.
-- tabline = {
-- lualine_a = {'buffers'},
-- lualine_b = {},
-- lualine_c = {},
-- lualine_x = {},
-- lualine_y = {},
-- lualine_z = {'tabs'}
-- },
extensions = {}
}