aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc
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/doc
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/doc')
-rw-r--r--runtime/doc/deprecated.txt1
-rw-r--r--runtime/doc/lsp.txt13
2 files changed, 1 insertions, 13 deletions
diff --git a/runtime/doc/deprecated.txt b/runtime/doc/deprecated.txt
index 7821878cfa..61666f4fe2 100644
--- a/runtime/doc/deprecated.txt
+++ b/runtime/doc/deprecated.txt
@@ -46,6 +46,7 @@ TREESITTER
LSP
• *vim.lsp.util.jump_to_location*
• *vim.lsp.buf.execute_command* Use |Client:exec_cmd()| instead.
+• *vim.lsp.buf.completion* Use |vim.lsp.completion.trigger()| instead.
------------------------------------------------------------------------------
DEPRECATED IN 0.10 *deprecated-0.10*
diff --git a/runtime/doc/lsp.txt b/runtime/doc/lsp.txt
index 9b152702a1..ab59c66912 100644
--- a/runtime/doc/lsp.txt
+++ b/runtime/doc/lsp.txt
@@ -1309,19 +1309,6 @@ code_action({opts}) *vim.lsp.buf.code_action()*
• https://microsoft.github.io/language-server-protocol/specifications/specification-current/#textDocument_codeAction
• vim.lsp.protocol.CodeActionTriggerKind
-completion({context}) *vim.lsp.buf.completion()*
- Retrieves the completion items at the current cursor position. Can only be
- called in Insert mode.
-
- Parameters: ~
- • {context} (`table`) (context support not yet implemented) Additional
- information about the context in which a completion was
- triggered (how it was triggered, and by which trigger
- character, if applicable)
-
- See also: ~
- • vim.lsp.protocol.CompletionTriggerKind
-
declaration({opts}) *vim.lsp.buf.declaration()*
Jumps to the declaration of the symbol under the cursor.