Skip to content

Commit

Permalink
fix(util): dont schedule on_load
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Oct 9, 2023
1 parent 9a4b9aa commit 4e8a88f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lua/lazyvim/util/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -283,9 +283,7 @@ end
function M.on_load(name, fn)
local Config = require("lazy.core.config")
if Config.plugins[name] and Config.plugins[name]._.loaded then
vim.schedule(function()
fn(name)
end)
fn(name)
else
vim.api.nvim_create_autocmd("User", {
pattern = "LazyLoad",
Expand Down

0 comments on commit 4e8a88f

Please sign in to comment.