mirror of
https://github.com/neovim/neovim.git
synced 2026-03-29 11:52:04 +00:00
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.
This commit is contained in:
1
runtime/lua/vim/_meta/api.lua
generated
1
runtime/lua/vim/_meta/api.lua
generated
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user