aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc
diff options
context:
space:
mode:
authorGregory Anders <8965202+gpanders@users.noreply.github.com>2024-05-28 12:39:30 -0500
committerGitHub <noreply@github.com>2024-05-28 12:39:30 -0500
commit0bdd602bf974fdefc348f47bb7b9057521eb0407 (patch)
tree5bec46754be4714b72e10a8ebe295d9606d0d59d /runtime/doc
parent8ba73f0e4cc6c82032a348a1d6c8d794ed150fd7 (diff)
parente6cfcaed184d4ecdc8a8638429e1bd9e1b3251dc (diff)
downloadrneovim-0bdd602bf974fdefc348f47bb7b9057521eb0407.tar.gz
rneovim-0bdd602bf974fdefc348f47bb7b9057521eb0407.tar.bz2
rneovim-0bdd602bf974fdefc348f47bb7b9057521eb0407.zip
Merge pull request #27339 from MariaSolOs/completion
feat(lsp): completion side effects
Diffstat (limited to 'runtime/doc')
-rw-r--r--runtime/doc/lsp.txt26
-rw-r--r--runtime/doc/news.txt9
2 files changed, 34 insertions, 1 deletions
diff --git a/runtime/doc/lsp.txt b/runtime/doc/lsp.txt
index a66b577b11..a78a16968f 100644
--- a/runtime/doc/lsp.txt
+++ b/runtime/doc/lsp.txt
@@ -1605,6 +1605,32 @@ save({lenses}, {bufnr}, {client_id}) *vim.lsp.codelens.save()*
==============================================================================
+Lua module: vim.lsp.completion *lsp-completion*
+
+*vim.lsp.completion.BufferOpts*
+
+ Fields: ~
+ • {autotrigger}? (`boolean`) Whether to trigger completion
+ automatically. Default: false
+
+
+ *vim.lsp.completion.enable()*
+enable({enable}, {client_id}, {bufnr}, {opts})
+ Enables or disables completions from the given language client in the
+ given buffer.
+
+ Parameters: ~
+ • {enable} (`boolean`) True to enable, false to disable
+ • {client_id} (`integer`) Client ID
+ • {bufnr} (`integer`) Buffer handle, or 0 for the current buffer
+ • {opts} (`vim.lsp.completion.BufferOpts?`) See
+ |vim.lsp.completion.BufferOpts|.
+
+trigger() *vim.lsp.completion.trigger()*
+ Trigger LSP completion in the current buffer.
+
+
+==============================================================================
Lua module: vim.lsp.inlay_hint *lsp-inlay_hint*
enable({enable}, {filter}) *vim.lsp.inlay_hint.enable()*
diff --git a/runtime/doc/news.txt b/runtime/doc/news.txt
index 2d4017e3c4..b5ba2921e6 100644
--- a/runtime/doc/news.txt
+++ b/runtime/doc/news.txt
@@ -85,6 +85,12 @@ DEFAULTS
- |gra| in Normal and Visual mode maps to |vim.lsp.buf.code_action()|
- CTRL-S in Insert mode maps to |vim.lsp.buf.signature_help()|
+• Snippet:
+ - `<Tab>` in Insert and Select mode maps to |vim.snippet.jump({ direction = 1 })|
+ when a snippet is active and jumpable forwards.
+ - `<S-Tab>` in Insert and Select mode maps to |vim.snippet.jump({ direction = -1 })|
+ when a snippet is active and jumpable backwards.
+
EDITOR
* On Windows, filename arguments on the command-line prefixed with "~\" or
@@ -97,7 +103,8 @@ EVENTS
LSP
-• TODO
+• Completion side effects (including snippet expansion, execution of commands
+ and application of additional text edits) is now built-in.
LUA