perf(config): add LazyVim to the rtp early for faster spec loading

This commit is contained in:
Folke Lemaitre 2023-10-04 13:43:36 +02:00
parent 3833a7d1ce
commit 2f16a7b2d9
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -227,6 +227,7 @@ M.did_init = false
function M.init() function M.init()
if not M.did_init then if not M.did_init then
M.did_init = true M.did_init = true
vim.opt.rtp:append(require("lazy.core.config").spec.plugins.LazyVim.dir)
-- delay notifications till vim.notify was replaced or after 500ms -- delay notifications till vim.notify was replaced or after 500ms
require("lazyvim.util").lazy_notify() require("lazyvim.util").lazy_notify()