Skip to content

Commit

Permalink
fix(commands): sync with plugins list should not delete those plugins.
Browse files Browse the repository at this point in the history
…Fixes #475
  • Loading branch information
folke committed Feb 1, 2023
1 parent 15fe46a commit 0c98031
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lua/lazy/manage/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,10 @@ function M.sync(opts)
end)
opts.show = false
end
local clean = M.clean(opts)

local clean_opts = vim.deepcopy(opts)
clean_opts.plugins = nil
local clean = M.clean(clean_opts)
local install = M.install(opts)
local update = M.update(opts)
clean:wait(function()
Expand Down

0 comments on commit 0c98031

Please sign in to comment.