优化懒加载触发机制

This commit is contained in:
captain 2026-05-07 17:04:26 +08:00
parent ee08df6765
commit 1cb5843449
11 changed files with 94 additions and 63 deletions

View file

@ -28,6 +28,7 @@ vim.keymap.set("n", "<leader>=", vim.diagnostic.goto_next, opts) -- <space>+跳
-- 懒加载触发器:当打开文件时触发
vim.api.nvim_create_autocmd({ "BufReadPost", "BufNewFile" }, {
once = true,
callback = function()
PackUtils.load(P, function()
-- === 基础依赖初始化 (Mason) ===