mirror of
https://github.com/neovim/neovim.git
synced 2026-05-03 20:45:02 +00:00
feat(lsp): deprecate vim.lsp.buf.completion
Use `vim.lsp.completion.trigger()` instead'
This commit is contained in:
committed by
Lewis Russell
parent
7a7747f1e4
commit
54249d051c
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user