aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraltermo <107814000+altermo@users.noreply.github.com>2024-03-07 09:16:05 +0100
committerLewis Russell <me@lewisr.dev>2024-03-07 09:38:50 +0000
commit04232a19ccf0e49a3a19d0ef48221249d982b0d4 (patch)
treeca83562373e3990a9e015012fe1ce0b161de3a43
parente52c25b7617ac6401b080f76b0e227161dfef230 (diff)
downloadrneovim-04232a19ccf0e49a3a19d0ef48221249d982b0d4.tar.gz
rneovim-04232a19ccf0e49a3a19d0ef48221249d982b0d4.tar.bz2
rneovim-04232a19ccf0e49a3a19d0ef48221249d982b0d4.zip
fix(type): remove incorrect arguments from vim.rpc*
-rw-r--r--runtime/doc/lua.txt6
-rw-r--r--runtime/lua/vim/_meta/builtin.lua6
2 files changed, 4 insertions, 8 deletions
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()*
diff --git a/runtime/lua/vim/_meta/builtin.lua b/runtime/lua/vim/_meta/builtin.lua
index 4831989e1a..9a67667f02 100644
--- a/runtime/lua/vim/_meta/builtin.lua
+++ b/runtime/lua/vim/_meta/builtin.lua
@@ -91,9 +91,8 @@ function vim.empty_dict() end
--- This function also works in a fast callback |lua-loop-callbacks|.
--- @param channel integer
--- @param method string
---- @param args? 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
--- a response is received.
@@ -102,9 +101,8 @@ function vim.rpcnotify(channel, method, args, ...) end
--- special value
--- @param channel integer
--- @param method string
---- @param args? any[]
--- @param ...? any
-function vim.rpcrequest(channel, method, args, ...) end
+function vim.rpcrequest(channel, method, ...) end
--- Compares strings case-insensitively.
--- @param a string