[Backport release-0.8] docs: fix incorrect :help tag (#20615)

fix: incorrect :help tag

vim.lsp.format() doesn't exist, which causes functionaltest to fail.
Change to vim.lsp.buf.format().

(cherry picked from commit 29a7f92e2e)

Co-authored-by: dundargoc <gocdundar@gmail.com>
This commit is contained in:
github-actions[bot] 2022-10-12 05:04:18 -07:00 committed by GitHub
parent a6b62821de
commit acb8033bca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -121,7 +121,7 @@ LSP Functions ~
*vim.lsp.buf.formatting()* Use |vim.lsp.buf.format()| with
{async = true} instead.
*vim.lsp.buf.range_formatting()* Use |vim.lsp.formatexpr()|
or |vim.lsp.format()| instead.
or |vim.lsp.buf.format()| instead.
Lua ~
*vim.register_keystroke_callback()* Use |vim.on_key()| instead.