mirror of
https://github.com/neovim/neovim.git
synced 2025-11-26 12:10:40 +00:00
feat(ui)!: emit prompt "messages" as cmdline events #31525
Problem: Prompts are emitted as messages events, where cmdline events
are more appropriate. The user input is also emitted as
message events in fast context, so cannot be displayed with
vim.ui_attach().
Solution: Prompt for user input through cmdline prompts.
This commit is contained in:
@@ -233,9 +233,8 @@ function vim.wait(time, callback, interval, fast_only) end
|
||||
--- {callback} receives event name plus additional parameters. See |ui-popupmenu|
|
||||
--- and the sections below for event format for respective events.
|
||||
---
|
||||
--- Callbacks for `msg_show` events are executed in |api-fast| context unless
|
||||
--- Nvim will wait for input, in which case messages should be shown
|
||||
--- immediately.
|
||||
--- Callbacks for `msg_show` events are executed in |api-fast| context; showing
|
||||
--- the message should be scheduled.
|
||||
---
|
||||
--- Excessive errors inside the callback will result in forced detachment.
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user