From a99669df1c61cbb867a56b63f832c87513aaf034 Mon Sep 17 00:00:00 2001 From: steventhorne Date: Tue, 4 Oct 2022 14:02:26 -0400 Subject: [PATCH] docs: add vim APIs to deprecated.txt Add vim.lsp.buf.formatting() to deprecated.txt. Add vim.lsp.buf.range_formatting() to deprecated.txt. --- runtime/doc/deprecated.txt | 4 ++++ 1 file changed, 4 insertions(+) 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.