mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-18 20:36:45 +00:00
feat: new task pipeline runner
This commit is contained in:
parent
97f44f9f65
commit
ab1b512545
7 changed files with 427 additions and 298 deletions
|
@ -50,7 +50,7 @@ function M:update()
|
|||
if plugin.tasks then
|
||||
for _, task in ipairs(plugin.tasks) do
|
||||
self.progress.total = self.progress.total + 1
|
||||
if not task.running then
|
||||
if not task:is_running() then
|
||||
self.progress.done = self.progress.done + 1
|
||||
end
|
||||
end
|
||||
|
@ -215,7 +215,7 @@ function M:diagnostics(plugin)
|
|||
end
|
||||
end
|
||||
for _, task in ipairs(plugin.tasks or {}) do
|
||||
if task.running then
|
||||
if task:is_running() then
|
||||
self:diagnostic({
|
||||
severity = vim.diagnostic.severity.WARN,
|
||||
message = task.type .. (task.status == "" and "" or (": " .. task.status)),
|
||||
|
|
|
@ -25,7 +25,7 @@ return {
|
|||
{
|
||||
filter = function(plugin)
|
||||
return has_task(plugin, function(task)
|
||||
return task.running
|
||||
return task:is_running()
|
||||
end)
|
||||
end,
|
||||
title = "Working",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue