feat(lualine): Lazy load on event VeryLazy

This commit is contained in:
rajvatsal 2024-01-09 11:24:00 +05:30
parent 478552ea38
commit 79b55158e1
1 changed files with 39 additions and 39 deletions

View File

@ -1,48 +1,48 @@
-- See `:help lualine.txt`
return { return {
-- Set lualine as statusline
'nvim-lualine/lualine.nvim', 'nvim-lualine/lualine.nvim',
-- See `:help lualine.txt`
dependencies = { dependencies = {
'nvim-tree/nvim-web-devicons', opt = true 'nvim-tree/nvim-web-devicons', opt = true
}, },
event = 'VeryLazy',
opts = { opts = {
options = { options = {
icons_enabled = true, icons_enabled = true,
theme = 'auto', theme = 'auto',
component_separators = { left = '', right = '' }, component_separators = { left = '', right = '' },
section_separators = { left = '', right = '' }, section_separators = { left = '', right = '' },
disabled_filetypes = { disabled_filetypes = {
statusline = {}, statusline = {},
winbar = {}, winbar = {},
},
ignore_focus = {},
always_divide_middle = true,
globalstatus = false,
refresh = {
statusline = 1000,
tabline = 1000,
winbar = 1000,
}
}, },
ignore_focus = {}, sections = {
always_divide_middle = true, lualine_a = { 'mode' },
globalstatus = false, lualine_b = { 'branch', 'diff', 'diagnostics' },
refresh = { lualine_c = { 'filename' },
statusline = 1000, lualine_x = { 'encoding', 'fileformat', 'filetype' },
tabline = 1000, lualine_y = { 'progress' },
winbar = 1000, lualine_z = { 'location' }
} },
}, inactive_sections = {
sections = { lualine_a = {},
lualine_a = { 'mode' }, lualine_b = {},
lualine_b = { 'branch', 'diff', 'diagnostics' }, lualine_c = { 'filename' },
lualine_c = { 'filename' }, lualine_x = { 'location' },
lualine_x = { 'encoding', 'fileformat', 'filetype' }, lualine_y = {},
lualine_y = { 'progress' }, lualine_z = {}
lualine_z = { 'location' } },
}, tabline = {},
inactive_sections = { winbar = {},
lualine_a = {}, inactive_winbar = {},
lualine_b = {}, extensions = {}
lualine_c = { 'filename' },
lualine_x = { 'location' },
lualine_y = {},
lualine_z = {}
},
tabline = {},
winbar = {},
inactive_winbar = {},
extensions = {}
}, },
} }