Skip to content

Commit

Permalink
fix(nvim-plug): fix default ui progress
Browse files Browse the repository at this point in the history
  • Loading branch information
wsdjeg committed Feb 8, 2025
1 parent 7ad0921 commit 3b55689
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion bundle/nvim-plug/lua/plug/installer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion bundle/nvim-plug/lua/plug/ui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3b55689

Please sign in to comment.