[Backport release-0.8] docs(lsp): add formatting APIs to deprecated.txt (#20614)

docs: add vim APIs to deprecated.txt

Add vim.lsp.buf.formatting() to deprecated.txt.
Add vim.lsp.buf.range_formatting() to deprecated.txt.

(cherry picked from commit a99669df1c)

Co-authored-by: steventhorne <steven.thorne91@gmail.com>
This commit is contained in:
github-actions[bot]
2022-10-12 05:03:09 -07:00
committed by GitHub
parent deda165155
commit a6b62821de

View File

@@ -118,6 +118,10 @@ LSP Functions ~
*vim.lsp.util.set_loclist()* Use |setloclist()| instead.
*vim.lsp.buf_get_clients()* Use |vim.lsp.get_active_clients()| with
{buffer = bufnr} instead.
*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.
Lua ~
*vim.register_keystroke_callback()* Use |vim.on_key()| instead.