feat(pack): 新增 mini.pairs 和 mini.ai 插件

This commit is contained in:
xfy 2026-06-01 10:24:36 +08:00
parent daffb7e2f5
commit 1df2d036c9

View File

@ -174,6 +174,8 @@ local all_modules = {
"fugitive",
"grugfar",
"ex-colors",
"pairs",
"ai",
}
-- 计算 Logo 的最大显示宽度,用于页脚居中计算
@ -301,6 +303,22 @@ if ok_notify then
lazy.track("notify")
end
-- ---------------------------------------------------------------------------
-- mini.pairs — 自动括号配对InsertEnter 懒加载)
-- ---------------------------------------------------------------------------
-- 输入成对字符时自动补全另一半,支持智能跳过和配对删除。
lazy.on_event("pairs", "InsertEnter", "*", function()
require("mini.pairs").setup()
end)
-- ---------------------------------------------------------------------------
-- mini.ai — 扩展 a/i textobjectBufReadPost 懒加载)
-- ---------------------------------------------------------------------------
-- 增强内置 textobject括号、引号等新增函数调用、参数、标签等。
lazy.on_event("ai", "BufReadPost", "*", function()
require("mini.ai").setup()
end)
-- ---------------------------------------------------------------------------
-- mini.cmdline — 增强命令行
-- ---------------------------------------------------------------------------