From 616341372d1908bb2a11e3bf9ed55e74bf605e40 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Sun, 18 Jun 2023 22:38:05 +0200 Subject: [PATCH] fix(manage): trigger LazySyncPre. Fixes #881 --- lua/lazy/manage/init.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lua/lazy/manage/init.lua b/lua/lazy/manage/init.lua index 2c19b64..05ffa88 100644 --- a/lua/lazy/manage/init.lua +++ b/lua/lazy/manage/init.lua @@ -180,6 +180,8 @@ function M.sync(opts) opts.show = false end + vim.api.nvim_exec_autocmds("User", { pattern = "LazySyncPre", modeline = false }) + local clean_opts = vim.deepcopy(opts) clean_opts.plugins = nil local clean = M.clean(clean_opts)