65 lines
1.5 KiB
Lua
65 lines
1.5 KiB
Lua
return {
|
|
'nvim-lualine/lualine.nvim',
|
|
dependencies = { 'nvim-tree/nvim-web-devicons' },
|
|
config = function()
|
|
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 = false,
|
|
refresh = {
|
|
statusline = 1000,
|
|
tabline = 1000,
|
|
winbar = 1000,
|
|
refresh_time = 16, -- ~60fps
|
|
events = {
|
|
'WinEnter',
|
|
'BufEnter',
|
|
'BufWritePost',
|
|
'SessionLoadPost',
|
|
'FileChangedShellPost',
|
|
'VimResized',
|
|
'Filetype',
|
|
'CursorMoved',
|
|
'CursorMovedI',
|
|
'ModeChanged',
|
|
},
|
|
}
|
|
},
|
|
sections = {
|
|
lualine_a = {'mode', 'lsp_status'},
|
|
lualine_b = {'branch', 'diff', 'diagnostics'},
|
|
lualine_c = {'filename'},
|
|
-- lualine_d = {'tabs', 'windows'},
|
|
lualine_x = {'searchcount', 'selectioncount', 'fileformat', 'filetype'},
|
|
lualine_y = {'progress', 'location'},
|
|
lualine_z = {{'datetime', style = "%m/%d %H:%M"}}
|
|
},
|
|
inactive_sections = {
|
|
lualine_a = {},
|
|
lualine_b = {},
|
|
lualine_c = {'filename'},
|
|
lualine_x = {'location'},
|
|
lualine_y = {},
|
|
lualine_z = {}
|
|
},
|
|
tabline = {
|
|
-- lualine_a = {'filename'}
|
|
},
|
|
winbar = {},
|
|
inactive_winbar = {},
|
|
extensions = {}
|
|
}
|
|
end
|
|
}
|
|
|