添加对字符相关插件

This commit is contained in:
caprain 2026-04-13 16:33:11 +08:00
parent bbc8152ed9
commit 51ee1aebf5
18 changed files with 200 additions and 162 deletions

View file

@ -22,18 +22,17 @@
"if vim.g.vscode then return end",
"",
"local P = {",
"\tname = \"${2:<++>}\", -- 仓库名",
"\tmodule = \"${3:<++>}\", -- require模块名",
"\tdeps = { ${4} },",
"\tbuild_cmd = ${5:nil},",
"\tname = \"${2:<++>}\",",
"\tdeps = { ${3} },",
"\tbuild_cmd = ${4:nil},",
"}",
"",
"${6}-- 注册构建监听器",
"${5}-- 注册构建监听器",
"PackUtils.setup_listener(P.name, P.build_cmd)",
"",
"-- 懒加载触发器",
"vim.api.nvim_create_autocmd({",
"\t${7}-- \"InsertEnter\", \"CmdlineEnter\", -- 补全/命令行",
"\t${6}-- \"InsertEnter\", \"CmdlineEnter\", -- 补全/命令行",
"\t-- \"BufReadPost\", \"BufNewFile\", -- 界面/语法类",
"\t-- \"LspAttach\", -- LSP 相关",
"\t-- \"FileType\", -- 确定文件类型",
@ -41,20 +40,16 @@
"\t-- \"UIEnter\", -- vim.schedule(function()",
"}, {",
"\tcallback = function()",
"\t\tPackUtils.load(P, function(plugin)",
"\t\t\tplugin.setup({",
"\t\t\t\t$8",
"\t\t\t})",
"\t\tPackUtils.load(P, function()",
"\t\t\t$7",
"\t\tend)",
"\tend",
"})",
"-- vim.keymap.set({ \"n\", \"v\" }, \"${9:<++>}\", function()",
"-- \tPackUtils.load(P, function(plugin)",
"-- \t\tplugin.setup({",
"-- \t\t\t$10",
"-- \t\t})",
"-- vim.keymap.set({ \"n\", \"v\" }, \"${8:<++>}\", function()",
"-- \tPackUtils.load(P, function()",
"-- \t\t$9",
"-- \tend)",
"-- \tvim.cmd(\"${11:Command}\")",
"-- \tvim.cmd(\"${10:Command}\")",
"-- end, { desc = \"${0:描述}\" })"
],
"description": "Neovim Native Package Loader (Pure Config)"