fix(docs): callback annotation for vim.ui.input #34507

This commit is contained in:
Maria José Solano
2025-06-17 06:37:27 -07:00
committed by GitHub
parent 006361fc6b
commit e74753a221
2 changed files with 5 additions and 5 deletions

View File

@@ -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

View File

@@ -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