feat: report loading as a progress message #30
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/progress"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Checklist
Problem
Nothing was echoed while a view loaded.
'busy'marks a buffer without sayingwhat is being done to it, and it cannot say anything at all about
:CI master,which resolves a revision before any buffer exists — so a slow one looked
like the command had been ignored.
Solution
The message has the same lifetime as
'busy'— it starts where the flag israised and ends where it is cleared, so it hooks into the two places every load
already passes through rather than being sprinkled through each fetch. Handing
the id back revises one message instead of queueing several.
The chunked paint reports a real percentage, being the only part of the work
with a denominator. The requests report
nil, which|progress-message|defines as unknown progress.
Verified through the
Progressautocommand:running → 39% → 78% → successfor a job,
running → successtwice for:CI master(resolve, then load).Version
kind='progress'needs 0.13, so that is the floor:health.lua, bothRequirements lists, and the now-redundant "(Neovim 0.12+)" note on the
vim.packinstructions.The dev shell takes Neovim from
nix-community/neovim-nightly-overlayinsteadof nixpkgs, which is still on 0.12.4 and would otherwise run the tests against
an API the plugin now depends on:
guh.nvimrequires 0.13+ for exactly this API.