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

37
lua/config/lazy.lua Executable file
View file

@ -0,0 +1,37 @@
local opts = {
git = { log = { '--since=3 days ago' } },
ui = { custom_keys = { false } },
colors = { themes = { 'monokai' } },
checker = {
enabled = true,
-- notify = false,
},
performance = {
rtp = {
disabled_plugins = {
'gzip',
'tarPlugin',
'tohtml',
'tutor',
'zipPlugin',
},
},
},
change_detection = {
notify = false,
},
}
require('lazy').setup({
-- Git related plugins
'tpope/vim-fugitive',
'tpope/vim-rhubarb',
-- Detect tabstop and shiftwidth automatically
'tpope/vim-sleuth',
{
import = 'custom.plugins',
exclude = 'custom.plugins.mason',
},
}, opts)