mirror of
https://github.com/neovim/neovim
synced 2025-07-28 09:21:58 +00:00
fix(typing): vim.fn.execute
This commit is contained in:
committed by
Lewis Russell
parent
883e2a1409
commit
b3342171d5
6
runtime/lua/vim/_meta/vimfn.lua
generated
6
runtime/lua/vim/_meta/vimfn.lua
generated
@ -1630,9 +1630,9 @@ function vim.fn.executable(expr) end
|
|||||||
--- To execute a command in another window than the current one
|
--- To execute a command in another window than the current one
|
||||||
--- use `win_execute()`.
|
--- use `win_execute()`.
|
||||||
---
|
---
|
||||||
--- @param command any
|
--- @param command string|string[]
|
||||||
--- @param silent? boolean
|
--- @param silent? ''|'silent'|'silent!'
|
||||||
--- @return any
|
--- @return string
|
||||||
function vim.fn.execute(command, silent) end
|
function vim.fn.execute(command, silent) end
|
||||||
|
|
||||||
--- Returns the full path of {expr} if it is an executable and
|
--- Returns the full path of {expr} if it is an executable and
|
||||||
|
@ -2111,7 +2111,11 @@ M.funcs = {
|
|||||||
|
|
||||||
]=],
|
]=],
|
||||||
name = 'execute',
|
name = 'execute',
|
||||||
params = { { 'command', 'any' }, { 'silent', 'boolean' } },
|
params = {
|
||||||
|
{ 'command', 'string|string[]' },
|
||||||
|
{ 'silent', "''|'silent'|'silent!'" }
|
||||||
|
},
|
||||||
|
returns = 'string',
|
||||||
signature = 'execute({command} [, {silent}])',
|
signature = 'execute({command} [, {silent}])',
|
||||||
},
|
},
|
||||||
exepath = {
|
exepath = {
|
||||||
|
Reference in New Issue
Block a user