This commit is contained in:
BirdeeHub 2024-01-04 16:40:23 -08:00
commit d5e48c8ea1

View file

@ -231,12 +231,12 @@ function M.setup(opts)
M.me = Util.norm(vim.fn.fnamemodify(M.me, ":p:h:h:h:h")) M.me = Util.norm(vim.fn.fnamemodify(M.me, ":p:h:h:h:h"))
if M.options.performance.rtp.reset then if M.options.performance.rtp.reset then
vim.opt.rtp = { vim.opt.rtp = {
vim.options.performance.rtp.custom_config_dir, M.options.performance.rtp.custom_config_dir,
vim.fn.stdpath("data") .. "/site", vim.fn.stdpath("data") .. "/site",
M.me, M.me,
vim.env.VIMRUNTIME, vim.env.VIMRUNTIME,
vim.fn.fnamemodify(vim.v.progpath, ":p:h:h") .. "/lib/nvim", vim.fn.fnamemodify(vim.v.progpath, ":p:h:h") .. "/lib/nvim",
vim.options.performance.rtp.custom_config_dir .. "/after", M.options.performance.rtp.custom_config_dir .. "/after",
} }
end end
for _, path in ipairs(M.options.performance.rtp.paths) do for _, path in ipairs(M.options.performance.rtp.paths) do