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.
This commit is contained in:
Chris Kipp
2023-01-11 20:17:10 +01:00
committed by GitHub
parent 8c5c2136fe
commit a37c686d21
3 changed files with 3 additions and 3 deletions

View File

@@ -2048,7 +2048,7 @@ end
--- Send a notification to a server
---@param bufnr (number|nil) The number of the buffer
---@param method (string) Name of the request method
---@param params (string) Arguments to send to the server
---@param params (any) Arguments to send to the server
---
---@returns true if any client returns true; false otherwise
function lsp.buf_notify(bufnr, method, params)