mirror of
https://github.com/neovim/neovim.git
synced 2024-12-23 12:45:17 -07:00
docs(eval): update param types of prompt-buffer functions (#30392)
This commit is contained in:
parent
549c00c791
commit
a0d8c2b86e
14
runtime/lua/vim/_meta/vimfn.lua
generated
14
runtime/lua/vim/_meta/vimfn.lua
generated
@ -6703,7 +6703,7 @@ function vim.fn.printf(fmt, expr1) end
|
||||
--- If the buffer doesn't exist or isn't a prompt buffer, an empty
|
||||
--- string is returned.
|
||||
---
|
||||
--- @param buf any
|
||||
--- @param buf integer|string
|
||||
--- @return any
|
||||
function vim.fn.prompt_getprompt(buf) end
|
||||
|
||||
@ -6738,8 +6738,8 @@ function vim.fn.prompt_getprompt(buf) end
|
||||
--- endfunc
|
||||
--- call prompt_setcallback(bufnr(), function('s:TextEntered'))
|
||||
---
|
||||
--- @param buf any
|
||||
--- @param expr any
|
||||
--- @param buf integer|string
|
||||
--- @param expr string|function
|
||||
--- @return any
|
||||
function vim.fn.prompt_setcallback(buf, expr) end
|
||||
|
||||
@ -6751,8 +6751,8 @@ function vim.fn.prompt_setcallback(buf, expr) end
|
||||
--- mode. Without setting a callback Vim will exit Insert mode,
|
||||
--- as in any buffer.
|
||||
---
|
||||
--- @param buf any
|
||||
--- @param expr any
|
||||
--- @param buf integer|string
|
||||
--- @param expr string|function
|
||||
--- @return any
|
||||
function vim.fn.prompt_setinterrupt(buf, expr) end
|
||||
|
||||
@ -6763,8 +6763,8 @@ function vim.fn.prompt_setinterrupt(buf, expr) end
|
||||
--- call prompt_setprompt(bufnr(''), 'command: ')
|
||||
--- <
|
||||
---
|
||||
--- @param buf any
|
||||
--- @param text any
|
||||
--- @param buf integer|string
|
||||
--- @param text string
|
||||
--- @return any
|
||||
function vim.fn.prompt_setprompt(buf, text) end
|
||||
|
||||
|
@ -8044,7 +8044,7 @@ M.funcs = {
|
||||
|
||||
]=],
|
||||
name = 'prompt_getprompt',
|
||||
params = { { 'buf', 'any' } },
|
||||
params = { { 'buf', 'integer|string' } },
|
||||
signature = 'prompt_getprompt({buf})',
|
||||
},
|
||||
prompt_setcallback = {
|
||||
@ -8084,7 +8084,7 @@ M.funcs = {
|
||||
|
||||
]=],
|
||||
name = 'prompt_setcallback',
|
||||
params = { { 'buf', 'any' }, { 'expr', 'any' } },
|
||||
params = { { 'buf', 'integer|string' }, { 'expr', 'string|function' } },
|
||||
signature = 'prompt_setcallback({buf}, {expr})',
|
||||
},
|
||||
prompt_setinterrupt = {
|
||||
@ -8101,7 +8101,7 @@ M.funcs = {
|
||||
|
||||
]=],
|
||||
name = 'prompt_setinterrupt',
|
||||
params = { { 'buf', 'any' }, { 'expr', 'any' } },
|
||||
params = { { 'buf', 'integer|string' }, { 'expr', 'string|function' } },
|
||||
signature = 'prompt_setinterrupt({buf}, {expr})',
|
||||
},
|
||||
prompt_setprompt = {
|
||||
@ -8116,7 +8116,7 @@ M.funcs = {
|
||||
<
|
||||
]=],
|
||||
name = 'prompt_setprompt',
|
||||
params = { { 'buf', 'any' }, { 'text', 'any' } },
|
||||
params = { { 'buf', 'integer|string' }, { 'text', 'string' } },
|
||||
signature = 'prompt_setprompt({buf}, {text})',
|
||||
},
|
||||
pum_getpos = {
|
||||
|
Loading…
Reference in New Issue
Block a user