fix: ensure ui closed after installing missing plugins

This commit is contained in:
Will Hopkins 2023-08-20 17:40:17 -07:00
commit e7d8a16262
No known key found for this signature in database
GPG key ID: 643B8C585BABBB68

View file

@ -3,6 +3,7 @@ local Config = require("lazy.core.config")
local Handler = require("lazy.core.handler") local Handler = require("lazy.core.handler")
local Plugin = require("lazy.core.plugin") local Plugin = require("lazy.core.plugin")
local Cache = require("lazy.core.cache") local Cache = require("lazy.core.cache")
local View = require("lazy.view")
---@class LazyCoreLoader ---@class LazyCoreLoader
local M = {} local M = {}
@ -45,8 +46,12 @@ function M.setup()
break break
end end
end end
if View.visible() then
View.view:close()
end
Util.track() Util.track()
end end
Config.mapleader = vim.g.mapleader Config.mapleader = vim.g.mapleader
-- report any warnings & errors -- report any warnings & errors