mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-07-14 19:34:36 +02:00
feat(notify): delay notifs till replaced or at most 500ms to prevent more prompts
This commit is contained in:
parent
3dd367caac
commit
701337fac8
4 changed files with 52 additions and 10 deletions
|
@ -128,6 +128,20 @@ function M.load(name)
|
|||
end
|
||||
end
|
||||
|
||||
M.did_init = false
|
||||
function M.init()
|
||||
if not M.did_init then
|
||||
M.did_init = true
|
||||
-- delay notifications till vim.notify was replaced or after 500ms
|
||||
require("lazyvim.util").lazy_notify()
|
||||
|
||||
-- load options here, before lazy init while sourcing plugin modules
|
||||
-- this is needed to make sure options will be correctly applied
|
||||
-- after installing missing plugins
|
||||
require("lazyvim.config").load("options")
|
||||
end
|
||||
end
|
||||
|
||||
setmetatable(M, {
|
||||
__index = function(_, key)
|
||||
if options == nil then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue