Skip to content

Commit

Permalink
fix: show view with schedule to prevent Neovim crash when no plugins …
Browse files Browse the repository at this point in the history
…are installed
  • Loading branch information
folke committed Nov 29, 2022
1 parent 4384d0e commit 5d84967
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lua/lazy/manage/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ function M.run(ropts, opts)
end

if opts.interactive then
require("lazy.view").show()
vim.schedule(function()
require("lazy.view").show()
end)
end

---@type Runner
Expand Down

0 comments on commit 5d84967

Please sign in to comment.