mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-18 20:36:45 +00:00
fix: use vim.api.nvim_exec_autocmds
instead of vim.cmd[[do]]
to prevent weird vim.notify
behavior
This commit is contained in:
parent
81017b99e7
commit
b73312aa32
8 changed files with 15 additions and 14 deletions
|
@ -85,7 +85,7 @@ function Task:_check()
|
|||
if self._opts.on_done then
|
||||
self._opts.on_done(self)
|
||||
end
|
||||
vim.cmd("do User LazyRender")
|
||||
vim.api.nvim_exec_autocmds("User", { pattern = "LazyRender", modeline = false })
|
||||
vim.api.nvim_exec_autocmds("User", {
|
||||
pattern = "LazyPlugin" .. self.name:sub(1, 1):upper() .. self.name:sub(2),
|
||||
data = { plugin = self.plugin.name },
|
||||
|
@ -131,7 +131,7 @@ function Task:spawn(cmd, opts)
|
|||
if on_line then
|
||||
pcall(on_line, line)
|
||||
end
|
||||
vim.cmd("do User LazyRender")
|
||||
vim.api.nvim_exec_autocmds("User", { pattern = "LazyRender", modeline = false })
|
||||
end
|
||||
|
||||
---@param output string
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue