mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-14 05:48:00 +08:00
fix(nvim-plug): fix default ui progress
This commit is contained in:
parent
7ad09214c0
commit
3b5568952e
3
bundle/nvim-plug/lua/plug/installer.lua
vendored
3
bundle/nvim-plug/lua/plug/installer.lua
vendored
@ -17,13 +17,14 @@ local config = require('plug.config')
|
|||||||
local on_uidate
|
local on_uidate
|
||||||
|
|
||||||
--- @class PlugUiData
|
--- @class PlugUiData
|
||||||
--- @field command? string clone/pull/build
|
--- @field command? string clone/pull/build/curl
|
||||||
--- @filed clone_process? string
|
--- @filed clone_process? string
|
||||||
--- @filed clone_done? boolean
|
--- @filed clone_done? boolean
|
||||||
--- @filed building? boolean
|
--- @filed building? boolean
|
||||||
--- @filed build_done? boolean
|
--- @filed build_done? boolean
|
||||||
--- @field pull_done? boolean
|
--- @field pull_done? boolean
|
||||||
--- @field pull_process? string
|
--- @field pull_process? string
|
||||||
|
--- @field curl_done? boolean
|
||||||
|
|
||||||
if config.ui == 'default' then
|
if config.ui == 'default' then
|
||||||
on_uidate = require('plug.ui').on_update
|
on_uidate = require('plug.ui').on_update
|
||||||
|
2
bundle/nvim-plug/lua/plug/ui.lua
vendored
2
bundle/nvim-plug/lua/plug/ui.lua
vendored
@ -17,7 +17,7 @@ local plugin_status = {}
|
|||||||
local function count_done(p)
|
local function count_done(p)
|
||||||
done = 0
|
done = 0
|
||||||
for _, v in pairs(p) do
|
for _, v in pairs(p) do
|
||||||
if v.clone_done then
|
if v.command and v[v.command .. '_done'] then
|
||||||
done = done + 1
|
done = done + 1
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user