fix: show view with schedule to prevent Neovim crash when no plugins are installed

This commit is contained in:
Folke Lemaitre 2022-11-29 07:56:29 +01:00
parent 4384d0e6d9
commit 5d84967e9c
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 3 additions and 1 deletions

View File

@ -22,7 +22,9 @@ function M.run(ropts, opts)
end end
if opts.interactive then if opts.interactive then
vim.schedule(function()
require("lazy.view").show() require("lazy.view").show()
end)
end end
---@type Runner ---@type Runner