mirror of
https://github.com/cap153/nvim.git
synced 2026-07-16 22:16:54 +08:00
优化懒加载触发机制
This commit is contained in:
parent
ee08df6765
commit
1cb5843449
11 changed files with 94 additions and 63 deletions
|
|
@ -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) ===
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue