Skip to content

Commit

Permalink
fix(pkg): only show pkg changed when effectively changing a pkg file. F…
Browse files Browse the repository at this point in the history
…ixes #1567
  • Loading branch information
folke committed Jun 27, 2024
1 parent 591ded8 commit 24a86d5
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions lua/lazy/core/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 24a86d5

Please sign in to comment.