fix: use vim.api.nvim_exec_autocmds instead of vim.cmd[[do]] to prevent weird vim.notify behavior

This commit is contained in:
Folke Lemaitre 2023-01-13 09:00:15 +01:00
parent 81017b99e7
commit b73312aa32
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
8 changed files with 15 additions and 14 deletions

View file

@ -227,7 +227,7 @@ function M._load(plugin, reason, opts)
plugin._.loaded.time = Util.track().time
table.remove(M.loading)
vim.schedule(function()
vim.cmd("do User LazyRender")
vim.api.nvim_exec_autocmds("User", { pattern = "LazyRender", modeline = false })
end)
end