Merge pull request #23047 from neovim/backport-23045-to-release-0.9

[Backport release-0.9] docs: add vim.lsp.buf.formatting_sync() to deprecated.txt
This commit is contained in:
zeertzjq
2023-04-12 23:03:07 +08:00
committed by GitHub

View File

@@ -120,6 +120,8 @@ LSP FUNCTIONS
{buffer = bufnr} instead. {buffer = bufnr} instead.
- *vim.lsp.buf.formatting()* Use |vim.lsp.buf.format()| with - *vim.lsp.buf.formatting()* Use |vim.lsp.buf.format()| with
{async = true} instead. {async = true} instead.
- *vim.lsp.buf.formatting_sync()* Use |vim.lsp.buf.format()| with
{async = false} instead.
- *vim.lsp.buf.range_formatting()* Use |vim.lsp.formatexpr()| - *vim.lsp.buf.range_formatting()* Use |vim.lsp.formatexpr()|
or |vim.lsp.buf.format()| instead. or |vim.lsp.buf.format()| instead.