aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/buf.lua
diff options
context:
space:
mode:
authorMike <Mike325@users.noreply.github.com>2022-09-23 20:20:56 -0500
committerGitHub <noreply@github.com>2022-09-23 19:20:56 -0600
commit14610332b2e851f9464a2d32a0ef3869dcff9834 (patch)
tree494090abfec73eb0795dc0cb3d25c3003f605695 /runtime/lua/vim/lsp/buf.lua
parentf3c842058ebc0ac475910726581a738d834955f6 (diff)
downloadrneovim-14610332b2e851f9464a2d32a0ef3869dcff9834.tar.gz
rneovim-14610332b2e851f9464a2d32a0ef3869dcff9834.tar.bz2
rneovim-14610332b2e851f9464a2d32a0ef3869dcff9834.zip
fix(lsp): use correct function name in deprecated message (#20308)
fix: use correct function name in deprecated message
Diffstat (limited to 'runtime/lua/vim/lsp/buf.lua')
-rw-r--r--runtime/lua/vim/lsp/buf.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/lua/vim/lsp/buf.lua b/runtime/lua/vim/lsp/buf.lua
index 2ce565e1d9..8567619228 100644
--- a/runtime/lua/vim/lsp/buf.lua
+++ b/runtime/lua/vim/lsp/buf.lua
@@ -404,7 +404,7 @@ end
---@param end_pos ({number, number}, optional) mark-indexed position.
---Defaults to the end of the last visual selection.
function M.range_formatting(options, start_pos, end_pos)
- vim.deprecate('vim.lsp.buf.range_formatting', 'vim.lsp.formatexpr or vim.lsp.format', '0.9.0')
+ vim.deprecate('vim.lsp.buf.range_formatting', 'vim.lsp.formatexpr or vim.lsp.buf.format', '0.9.0')
local params = util.make_given_range_params(start_pos, end_pos)
params.options = util.make_formatting_params(options).options
select_client('textDocument/rangeFormatting', function(client)