mirror of https://github.com/folke/lazy.nvim.git
fix(pkg): only show pkg changed when effectively changing a pkg file. Fixes #1567
This commit is contained in:
parent
591ded8309
commit
24a86d5ca4
|
@ -311,11 +311,10 @@ function M.setup(opts)
|
|||
vim.api.nvim_create_autocmd("BufWritePost", {
|
||||
pattern = { "lazy.lua", "pkg.json", "*.rockspec" },
|
||||
callback = function()
|
||||
require("lazy").pkg({
|
||||
plugins = {
|
||||
require("lazy.core.plugin").find(vim.uv.cwd() .. "/lua/"),
|
||||
},
|
||||
})
|
||||
local plugin = require("lazy.core.plugin").find(vim.uv.cwd() .. "/lua/")
|
||||
if plugin then
|
||||
require("lazy").pkg({ plugins = { plugin } })
|
||||
end
|
||||
end,
|
||||
})
|
||||
end,
|
||||
|
|
Loading…
Reference in New Issue