diff options
author | LostNeophyte <[email protected]> | 2023-01-17 16:35:24 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2023-01-17 16:35:24 +0100 |
commit | 1162b727574e37fefd8d47d204b2608ac3ee9fa4 (patch) | |
tree | 32c8be1bbdfd8b9ca160512599fbdc4946d4c83c /lua | |
parent | 5c3d76c7f64d01a95525502d57606794dc085c8c (diff) |
fix(plugin-loader): don't clean lazy.nvim in sync_core_plugins (#3731)
Diffstat (limited to 'lua')
-rw-r--r-- | lua/lvim/plugin-loader.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lua/lvim/plugin-loader.lua b/lua/lvim/plugin-loader.lua index 5949236c..09c89084 100644 --- a/lua/lvim/plugin-loader.lua +++ b/lua/lvim/plugin-loader.lua @@ -138,7 +138,10 @@ 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 - table.insert(names, get_name(spec[1])) + local name = get_name(spec[1]) + if name ~= "lazy.nvim" then + table.insert(names, name) + end end end return names @@ -147,6 +150,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 } end |