From 04232a19ccf0e49a3a19d0ef48221249d982b0d4 Mon Sep 17 00:00:00 2001 From: altermo <107814000+altermo@users.noreply.github.com> Date: Thu, 7 Mar 2024 09:16:05 +0100 Subject: fix(type): remove incorrect arguments from vim.rpc* --- runtime/doc/lua.txt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'runtime/doc') diff --git a/runtime/doc/lua.txt b/runtime/doc/lua.txt index d0ce737e49..03e9ca4dd9 100644 --- a/runtime/doc/lua.txt +++ b/runtime/doc/lua.txt @@ -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 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} is 0, the event is broadcast to all channels. @@ -931,10 +931,9 @@ vim.rpcnotify({channel}, {method}, {args}, {...}) *vim.rpcnotify()* Parameters: ~ • {channel} (`integer`) • {method} (`string`) - • {args} (`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 a response is received. @@ -944,7 +943,6 @@ vim.rpcrequest({channel}, {method}, {args}, {...}) *vim.rpcrequest()* Parameters: ~ • {channel} (`integer`) • {method} (`string`) - • {args} (`any[]?`) • {...} (`any?`) vim.schedule({fn}) *vim.schedule()* -- cgit