neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit de47b4b9016803650117d2ce79a537b3975af2b7
parent 1cb858b355e76a2be4172c305d73018b10d48efd
Author: Steve Thorne <steventhorne@users.noreply.github.com>
Date:   Thu,  6 Oct 2022 04:07:04 -0400

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.
Diffstat:
Mruntime/doc/deprecated.txt | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git 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.