docs(lsp): add formatting APIs to deprecated.txt (#20487)

Add vim.lsp.buf.formatting() to deprecated.txt.
Add vim.lsp.buf.range_formatting() to deprecated.txt.
This commit is contained in:
Steve Thorne 2022-10-06 04:07:04 -04:00 committed by GitHub
parent 1cb858b355
commit de47b4b901
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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.