mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-06-29 11:54:15 +00:00
feat: adding LazyPreSync event
This commit is contained in:
parent
ae25448d39
commit
05c44f07d3
3 changed files with 4 additions and 0 deletions
|
@ -112,6 +112,7 @@ function M.update(opts)
|
|||
require("lazy.help").update()
|
||||
end)
|
||||
end
|
||||
|
||||
--
|
||||
---@param opts? ManagerOpts
|
||||
function M.restore(opts)
|
||||
|
@ -168,6 +169,7 @@ function M.sync(opts)
|
|||
M.clear()
|
||||
opts.clear = false
|
||||
end
|
||||
vim.api.nvim_exec_autocmds("User", { pattern = "LazyPreSync", modeline = false })
|
||||
if opts.show ~= false then
|
||||
vim.schedule(function()
|
||||
require("lazy.view").show("sync")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue