fix(typing): vim.fn.execute

This commit is contained in:
Lewis Russell 2023-09-16 11:43:02 +01:00 committed by Lewis Russell
parent 883e2a1409
commit b3342171d5
2 changed files with 8 additions and 4 deletions

View File

@ -1630,9 +1630,9 @@ function vim.fn.executable(expr) end
--- To execute a command in another window than the current one
--- use `win_execute()`.
---
--- @param command any
--- @param silent? boolean
--- @return any
--- @param command string|string[]
--- @param silent? ''|'silent'|'silent!'
--- @return string
function vim.fn.execute(command, silent) end
--- Returns the full path of {expr} if it is an executable and

View File

@ -2111,7 +2111,11 @@ M.funcs = {
]=],
name = 'execute',
params = { { 'command', 'any' }, { 'silent', 'boolean' } },
params = {
{ 'command', 'string|string[]' },
{ 'silent', "''|'silent'|'silent!'" }
},
returns = 'string',
signature = 'execute({command} [, {silent}])',
},
exepath = {