diff --git a/runtime/lua/vim/pack.lua b/runtime/lua/vim/pack.lua index 0a4058be56..8284767cfe 100644 --- a/runtime/lua/vim/pack.lua +++ b/runtime/lua/vim/pack.lua @@ -483,7 +483,7 @@ end --- @param action string --- @return fun(kind: 'begin'|'report'|'end', percent: integer, fmt: string, ...:any): nil local function new_progress_report(action) - local progress = { kind = 'progress', title = 'vim.pack' } + local progress = { kind = 'progress', source = 'vim.pack', title = 'vim.pack' } local headless = #api.nvim_list_uis() == 0 return vim.schedule_wrap(function(kind, percent, fmt, ...) diff --git a/test/functional/plugin/pack_spec.lua b/test/functional/plugin/pack_spec.lua index 88fbdbe047..7cf9e16922 100644 --- a/test/functional/plugin/pack_spec.lua +++ b/test/functional/plugin/pack_spec.lua @@ -316,7 +316,8 @@ local function assert_progress_report(action, step_names) local n_steps = #step_names eq(n_steps + 2, #echo_log) - local progress = { kind = 'progress', title = 'vim.pack', status = 'running', percent = 0 } + local progress = + { kind = 'progress', source = 'vim.pack', title = 'vim.pack', status = 'running', percent = 0 } local init_step = { { { ('%s (0/%d)'):format(action, n_steps) } }, true, progress } eq(init_step, echo_log[1])