From a37c686d21c1ad4e50f455e989642d38435d41ba Mon Sep 17 00:00:00 2001 From: Chris Kipp Date: Wed, 11 Jan 2023 20:17:10 +0100 Subject: docs(lsp): update buf_notify and rpc.notify params types (#21753) Small, but I was getting warnings about my usage of `vim.lsp.buf_notify(bufnr, method, {example = example})` since the docs say that `params` must be a string, however this can really be anything when it's passed to `rpc.notify` since we just end up calling `vim.json.encode(payload)` on it. This fixes the docs in those two places and regenerates them. --- runtime/doc/lsp.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/doc') diff --git a/runtime/doc/lsp.txt b/runtime/doc/lsp.txt index aff0f9a793..703c0b9d03 100644 --- a/runtime/doc/lsp.txt +++ b/runtime/doc/lsp.txt @@ -566,7 +566,7 @@ buf_notify({bufnr}, {method}, {params}) *vim.lsp.buf_notify()* Parameters: ~ • {bufnr} (number|nil) The number of the buffer • {method} (string) Name of the request method - • {params} (string) Arguments to send to the server + • {params} (any) Arguments to send to the server Return: ~ true if any client returns true; false otherwise -- cgit