aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Thorne <steventhorne@users.noreply.github.com>2022-10-06 04:07:04 -0400
committerGitHub <noreply@github.com>2022-10-06 10:07:04 +0200
commitde47b4b9016803650117d2ce79a537b3975af2b7 (patch)
tree6ac4275d50522d229793bf2011aa90b5f773edd7
parent1cb858b355e76a2be4172c305d73018b10d48efd (diff)
downloadrneovim-de47b4b9016803650117d2ce79a537b3975af2b7.tar.gz
rneovim-de47b4b9016803650117d2ce79a537b3975af2b7.tar.bz2
rneovim-de47b4b9016803650117d2ce79a537b3975af2b7.zip
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.
-rw-r--r--runtime/doc/deprecated.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/doc/deprecated.txt b/runtime/doc/deprecated.txt
index b1dd650e7d..d82e3ef895 100644
--- a/runtime/doc/deprecated.txt
+++ b/runtime/doc/deprecated.txt
@@ -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.