mirror of
https://github.com/LunarVim/LunarVim.git
synced 2024-09-20 10:35:08 +02:00
fix(plugin-loader): don't clean plugins on LvimUpdate (#3747)
This commit is contained in:
parent
1162b72757
commit
edc5e0e93f
1 changed files with 2 additions and 6 deletions
|
@ -138,10 +138,7 @@ function plugin_loader.get_core_plugins()
|
|||
local get_name = require("lazy.core.plugin").Spec.get_name
|
||||
for _, spec in pairs(plugins) do
|
||||
if spec.enabled == true or spec.enabled == nil then
|
||||
local name = get_name(spec[1])
|
||||
if name ~= "lazy.nvim" then
|
||||
table.insert(names, name)
|
||||
end
|
||||
table.insert(names, get_name(spec[1]))
|
||||
end
|
||||
end
|
||||
return names
|
||||
|
@ -150,8 +147,7 @@ end
|
|||
function plugin_loader.sync_core_plugins()
|
||||
local core_plugins = plugin_loader.get_core_plugins()
|
||||
Log:trace(string.format("Syncing core plugins: [%q]", table.concat(core_plugins, ", ")))
|
||||
require("lazy").update { wait = true, plugins = { "lazy.nvim" } }
|
||||
require("lazy").sync { wait = true, plugins = core_plugins }
|
||||
require("lazy").update { wait = true, plugins = core_plugins }
|
||||
end
|
||||
|
||||
function plugin_loader.ensure_plugins()
|
||||
|
|
Loading…
Reference in a new issue