无法自动更新插件
#146
Replies: 3 comments 4 replies
-
没有 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Beta Was this translation helpful? Give feedback.
2 replies
-
-- 修改lua/plugins.lua 自动更新插件
autocmd("BufWritePost", {
group = myAutoGroup,
-- autocmd BufWritePost plugins.lua source <afile> | PackerSync
callback = function()
if vim.fn.expand("<afile>") == "lua/plugins.lua" then
print("进入该作用域")
vim.api.nvim_command("source lua/plugins.lua")
vim.api.nvim_command("PackerSync")
end
end,
}) 尝试改成我上面这样然后通过 简单的lua的调试无非就是print(),然后这些信息通过 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
将原本plugins.lua中的自动安装移除
新增autocmds.lus
当我保存时,插件没有自动更新
Beta Was this translation helpful? Give feedback.
All reactions