fix(commands): sync with plugins list should not delete those plugins. Fixes #475

This commit is contained in:
Folke Lemaitre 2023-02-01 08:06:48 +01:00
parent 15fe46a728
commit 0c980312fd
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 4 additions and 1 deletions

View File

@ -174,7 +174,10 @@ function M.sync(opts)
end) end)
opts.show = false opts.show = false
end 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 install = M.install(opts)
local update = M.update(opts) local update = M.update(opts)
clean:wait(function() clean:wait(function()