fix(typing): vim.fn.execute

This commit is contained in:
Lewis Russell authored and Lewis Russell committed 2023-09-16 14:24:24 +01:00
1 parent 883e2a1409
commit b3342171d5
2 files changed
+8 -4

No files matched your search

+3 -3
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
+5 -1
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 = {