improving startup time by using lazy loading or filetype loading

This commit is contained in:
Jeremie Fraeys 2024-07-21 20:57:00 -04:00
parent bdb655c5a1
commit 7f1b34fd6f
62 changed files with 1285 additions and 561 deletions

View file

@ -1,13 +1,33 @@
return {
-- Set lualine as statusline
'nvim-lualine/lualine.nvim',
-- See `:help lualine.txt`
opts = {
options = {
icons_enabled = false,
theme = 'onedark',
component_separators = '|',
section_separators = '',
},
},
dependencies = { 'nvim-tree/nvim-web-devicons', 'tpope/vim-fugitive' },
config = function()
require('lualine').setup({
options = {
theme = 'auto',
icons_enabled = true,
component_separators = '|',
section_separators = '',
},
sections = {
lualine_a = {
{ 'buffers', show_modified_status = true, symbols = { modified = '', alternate_file = '#', directory = '' } },
},
lualine_b = {
{ 'mode', icons_enabled = true },
},
lualine_c = {
'branch',
{ 'diff', colored = false, symbols = { added = '', modified = '', removed = '' } },
},
lualine_x = {
'encoding',
{ 'fileformat', symbols = { unix = '', mac = '', dos = '' } },
'filetype',
},
},
extensions = { 'fugitive', 'nvim-tree' },
})
end,
}