1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-14 06:28:00 +08:00

fix(nvim-plug): fix default ui progress

This commit is contained in:
Eric Wong 2025-02-08 23:12:11 +08:00
parent 7ad09214c0
commit 3b5568952e
No known key found for this signature in database
GPG Key ID: 41BB7053E835C848
2 changed files with 3 additions and 2 deletions

View File

@ -17,13 +17,14 @@ local config = require('plug.config')
local on_uidate
--- @class PlugUiData
--- @field command? string clone/pull/build
--- @field command? string clone/pull/build/curl
--- @filed clone_process? string
--- @filed clone_done? boolean
--- @filed building? boolean
--- @filed build_done? boolean
--- @field pull_done? boolean
--- @field pull_process? string
--- @field curl_done? boolean
if config.ui == 'default' then
on_uidate = require('plug.ui').on_update

View File

@ -17,7 +17,7 @@ local plugin_status = {}
local function count_done(p)
done = 0
for _, v in pairs(p) do
if v.clone_done then
if v.command and v[v.command .. '_done'] then
done = done + 1
end
end