aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc
diff options
context:
space:
mode:
authorMaria José Solano <majosolano99@gmail.com>2024-02-04 14:13:23 -0800
committerMaria José Solano <majosolano99@gmail.com>2024-05-27 14:53:28 -0700
commitff097f2091e7a970e5b12960683b4dade5563040 (patch)
treed3b58907b6d41e2ad8f998f6e2b8134f56140389 /runtime/doc
parent28c04948a1c887a1cc0cb64de79fa32631700466 (diff)
downloadrneovim-ff097f2091e7a970e5b12960683b4dade5563040.tar.gz
rneovim-ff097f2091e7a970e5b12960683b4dade5563040.tar.bz2
rneovim-ff097f2091e7a970e5b12960683b4dade5563040.zip
feat(lsp): completion side effects
Diffstat (limited to 'runtime/doc')
-rw-r--r--runtime/doc/lsp.txt26
-rw-r--r--runtime/doc/news.txt3
2 files changed, 28 insertions, 1 deletions
diff --git a/runtime/doc/lsp.txt b/runtime/doc/lsp.txt
index 50fffca497..0e165e6f54 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 708e127136..439316f62e 100644
--- a/runtime/doc/news.txt
+++ b/runtime/doc/news.txt
@@ -95,7 +95,8 @@ EVENTS
LSP
-• TODO
+• Completion side effects (including snippet expansion, execution of commands
+ and application of additional text edits) is now built-in.
LUA