aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/doc')
-rw-r--r--runtime/doc/lsp.txt3
-rw-r--r--runtime/doc/news.txt4
2 files changed, 6 insertions, 1 deletions
diff --git a/runtime/doc/lsp.txt b/runtime/doc/lsp.txt
index 32d414e9a7..05734c3ac1 100644
--- a/runtime/doc/lsp.txt
+++ b/runtime/doc/lsp.txt
@@ -1630,6 +1630,9 @@ Lua module: vim.lsp.completion *lsp-completion*
Fields: ~
• {autotrigger}? (`boolean`) Whether to trigger completion
automatically. Default: false
+ • {convert}? (`fun(item: lsp.CompletionItem): table`) An optional
+ function used to customize the transformation of an
+ LSP CompletionItem to |complete-items|.
*vim.lsp.completion.enable()*
diff --git a/runtime/doc/news.txt b/runtime/doc/news.txt
index 7c842f42dd..1d1e87fd0b 100644
--- a/runtime/doc/news.txt
+++ b/runtime/doc/news.txt
@@ -65,7 +65,9 @@ EVENTS
LSP
-• TODO
+• Add convert field in |vim.lsp.completion.BufferOpts| of
+ |vim.lsp.completion.enable()| an optional function used to customize the
+ transformation of an Lsp CompletionItem to |complete-items|.
LUA