aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/buf.lua
diff options
context:
space:
mode:
authorLewis Russell <lewis6991@gmail.com>2024-10-24 15:43:38 +0100
committerLewis Russell <me@lewisr.dev>2024-10-24 16:36:14 +0100
commit54249d051c3e0b97321939e6a3ae3d2e83971ce7 (patch)
tree9d145ca766928120bf1370a3da8d547682317a5d /runtime/lua/vim/lsp/buf.lua
parent7a7747f1e4d96aab53ff9c52d0c3492308c22c58 (diff)
downloadrneovim-54249d051c3e0b97321939e6a3ae3d2e83971ce7.tar.gz
rneovim-54249d051c3e0b97321939e6a3ae3d2e83971ce7.tar.bz2
rneovim-54249d051c3e0b97321939e6a3ae3d2e83971ce7.zip
feat(lsp): deprecate vim.lsp.buf.completion
Use `vim.lsp.completion.trigger()` instead'
Diffstat (limited to 'runtime/lua/vim/lsp/buf.lua')
-rw-r--r--runtime/lua/vim/lsp/buf.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/lua/vim/lsp/buf.lua b/runtime/lua/vim/lsp/buf.lua
index 4cd4008105..5f50e361c4 100644
--- a/runtime/lua/vim/lsp/buf.lua
+++ b/runtime/lua/vim/lsp/buf.lua
@@ -191,6 +191,7 @@ function M.signature_help()
lsp.buf_request(0, ms.textDocument_signatureHelp, client_positional_params())
end
+--- @deprecated
--- Retrieves the completion items at the current cursor position. Can only be
--- called in Insert mode.
---
@@ -200,6 +201,7 @@ end
---
---@see vim.lsp.protocol.CompletionTriggerKind
function M.completion(context)
+ vim.depends('vim.lsp.buf.completion', 'vim.lsp.commpletion.trigger', '0.12')
return lsp.buf_request(
0,
ms.textDocument_completion,