diff options
| author | Shadman <shadmansaleh3@gmail.com> | 2026-03-27 16:24:14 +0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-27 06:24:14 -0400 |
| commit | 4b643d7068e871e4bee8ab74f3f0a054c242fa33 (patch) | |
| tree | e5823b4963e9385e9bd26e74f8b023cb42ced276 /runtime/lua/vim/_meta/api.lua | |
| parent | 925e9e87222cba0c48d2a9184fa3e5fcad65d4ba (diff) | |
feat(progress): set Progress-event pattern to "source" #38495
Problem:
Currently, there's no way to distinguish progress messages coming from
different sources. Nor can Progress event be easily filtered based on
source.
Solution:
- Add "source" field to nvim_echo-opts.
- The Progress event pattern is now defined by the "source" field.
- Include the "title" as ev.data.
- Unrelated change: set force=false to disable nesting.
Diffstat (limited to 'runtime/lua/vim/_meta/api.lua')
| -rw-r--r-- | runtime/lua/vim/_meta/api.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/lua/vim/_meta/api.lua b/runtime/lua/vim/_meta/api.lua index 380058a287..65d05dac1e 100644 --- a/runtime/lua/vim/_meta/api.lua +++ b/runtime/lua/vim/_meta/api.lua @@ -1139,6 +1139,7 @@ function vim.api.nvim_del_var(name) end --- - kind (`string?`) Decides the `ui-messages` kind in the emitted message. Set "progress" --- to emit a `progress-message`. --- - percent (`integer?`) `progress-message` percentage. +--- - source (`string?`) `progress-message` source. --- - status (`string?`) `progress-message` status: --- - "success": Process completed successfully. --- - "running": Process is ongoing. |
