mirror of
https://github.com/neovim/neovim.git
synced 2025-09-05 19:08:15 +00:00
fix(docs): callback annotation for vim.ui.input
#34507
This commit is contained in:

committed by
GitHub

parent
006361fc6b
commit
e74753a221
@@ -2606,10 +2606,10 @@ vim.ui.input({opts}, {on_confirm}) *vim.ui.input()*
|
||||
"-complete=" argument. See |:command-completion|
|
||||
• highlight (function) Function that will be used for
|
||||
highlighting user inputs.
|
||||
• {on_confirm} (`function`) ((input|nil) -> ()) Called once the user
|
||||
confirms or abort the input. `input` is what the user
|
||||
typed (it might be an empty string if nothing was
|
||||
entered), or `nil` if the user aborted the dialog.
|
||||
• {on_confirm} (`fun(input:string?)`) Called once the user confirms or
|
||||
abort the input. `input` is what the user typed (it
|
||||
might be an empty string if nothing was entered), or
|
||||
`nil` if the user aborted the dialog.
|
||||
|
||||
vim.ui.open({path}, {opt}) *vim.ui.open()*
|
||||
Opens `path` with the system default handler (macOS `open`, Windows
|
||||
|
@@ -81,7 +81,7 @@ end
|
||||
--- - highlight (function)
|
||||
--- Function that will be used for highlighting
|
||||
--- user inputs.
|
||||
---@param on_confirm function ((input|nil) -> ())
|
||||
---@param on_confirm fun(input:string|nil)
|
||||
--- Called once the user confirms or abort the input.
|
||||
--- `input` is what the user typed (it might be
|
||||
--- an empty string if nothing was entered), or
|
||||
|
Reference in New Issue
Block a user