feat(progress): disable cmdline progress msg via messagesopt' #36730

Problem:
No way to disable progress messages in cmdline message area. If
a third-party plugin handles Progress events + messages, the user may
not want the "redundant" progress displayed in the cmdline message area.

Solution:
Support "progress:c" entry in 'messageopts' option.
This commit is contained in:
Shadman
2026-03-16 21:29:47 +06:00
committed by GitHub
parent c668ce02e5
commit 7b7e8cc724
10 changed files with 116 additions and 19 deletions

View File

@@ -4458,9 +4458,14 @@ vim.go.mis = vim.go.menuitems
--- `:messages` history. The maximum value is 10000.
--- Setting it to zero clears the message history.
--- This item must always be present.
--- progress:{s}
--- Determines where to show progress messages.
--- Valid values are:
--- empty: progress messages are hidden in cmdline.
--- "c": progress messages are shown in cmdline.
---
--- @type string
vim.o.messagesopt = "hit-enter,history:500"
vim.o.messagesopt = "hit-enter,history:500,progress:c"
vim.o.mopt = vim.o.messagesopt
vim.go.messagesopt = vim.o.messagesopt
vim.go.mopt = vim.go.messagesopt