mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-19 04:46: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
|
@ -127,7 +127,7 @@ function M:mount()
|
|||
config.style = self.opts.style ~= "" and self.opts.style or nil
|
||||
vim.api.nvim_win_set_config(self.win, config)
|
||||
opts()
|
||||
vim.cmd([[do User LazyFloatResized]])
|
||||
vim.api.nvim_exec_autocmds("User", { pattern = "LazyFloatResized", modeline = false })
|
||||
end,
|
||||
})
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue