mirror of
https://github.com/neovim/neovim
synced 2025-07-19 18:51:46 +00:00
fix(type): remove incorrect arguments from vim.rpc*
This commit is contained in:
@ -922,7 +922,7 @@ vim.in_fast_event() *vim.in_fast_event()*
|
|||||||
When this is `false` most API functions are callable (but may be subject
|
When this is `false` most API functions are callable (but may be subject
|
||||||
to other restrictions such as |textlock|).
|
to other restrictions such as |textlock|).
|
||||||
|
|
||||||
vim.rpcnotify({channel}, {method}, {args}, {...}) *vim.rpcnotify()*
|
vim.rpcnotify({channel}, {method}, {...}) *vim.rpcnotify()*
|
||||||
Sends {event} to {channel} via |RPC| and returns immediately. If {channel}
|
Sends {event} to {channel} via |RPC| and returns immediately. If {channel}
|
||||||
is 0, the event is broadcast to all channels.
|
is 0, the event is broadcast to all channels.
|
||||||
|
|
||||||
@ -931,10 +931,9 @@ vim.rpcnotify({channel}, {method}, {args}, {...}) *vim.rpcnotify()*
|
|||||||
Parameters: ~
|
Parameters: ~
|
||||||
• {channel} (`integer`)
|
• {channel} (`integer`)
|
||||||
• {method} (`string`)
|
• {method} (`string`)
|
||||||
• {args} (`any[]?`)
|
|
||||||
• {...} (`any?`)
|
• {...} (`any?`)
|
||||||
|
|
||||||
vim.rpcrequest({channel}, {method}, {args}, {...}) *vim.rpcrequest()*
|
vim.rpcrequest({channel}, {method}, {...}) *vim.rpcrequest()*
|
||||||
Sends a request to {channel} to invoke {method} via |RPC| and blocks until
|
Sends a request to {channel} to invoke {method} via |RPC| and blocks until
|
||||||
a response is received.
|
a response is received.
|
||||||
|
|
||||||
@ -944,7 +943,6 @@ vim.rpcrequest({channel}, {method}, {args}, {...}) *vim.rpcrequest()*
|
|||||||
Parameters: ~
|
Parameters: ~
|
||||||
• {channel} (`integer`)
|
• {channel} (`integer`)
|
||||||
• {method} (`string`)
|
• {method} (`string`)
|
||||||
• {args} (`any[]?`)
|
|
||||||
• {...} (`any?`)
|
• {...} (`any?`)
|
||||||
|
|
||||||
vim.schedule({fn}) *vim.schedule()*
|
vim.schedule({fn}) *vim.schedule()*
|
||||||
|
@ -91,9 +91,8 @@ function vim.empty_dict() end
|
|||||||
--- This function also works in a fast callback |lua-loop-callbacks|.
|
--- This function also works in a fast callback |lua-loop-callbacks|.
|
||||||
--- @param channel integer
|
--- @param channel integer
|
||||||
--- @param method string
|
--- @param method string
|
||||||
--- @param args? any[]
|
|
||||||
--- @param ...? any
|
--- @param ...? any
|
||||||
function vim.rpcnotify(channel, method, args, ...) end
|
function vim.rpcnotify(channel, method, ...) end
|
||||||
|
|
||||||
--- Sends a request to {channel} to invoke {method} via |RPC| and blocks until
|
--- Sends a request to {channel} to invoke {method} via |RPC| and blocks until
|
||||||
--- a response is received.
|
--- a response is received.
|
||||||
@ -102,9 +101,8 @@ function vim.rpcnotify(channel, method, args, ...) end
|
|||||||
--- special value
|
--- special value
|
||||||
--- @param channel integer
|
--- @param channel integer
|
||||||
--- @param method string
|
--- @param method string
|
||||||
--- @param args? any[]
|
|
||||||
--- @param ...? any
|
--- @param ...? any
|
||||||
function vim.rpcrequest(channel, method, args, ...) end
|
function vim.rpcrequest(channel, method, ...) end
|
||||||
|
|
||||||
--- Compares strings case-insensitively.
|
--- Compares strings case-insensitively.
|
||||||
--- @param a string
|
--- @param a string
|
||||||
|
Reference in New Issue
Block a user