aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/util.lua
diff options
context:
space:
mode:
authorBlaž Hrastnik <blaz@mxxn.io>2020-04-29 10:32:34 +0900
committerBlaž Hrastnik <blaz@mxxn.io>2020-04-29 13:26:56 +0900
commite4a1be779b9a6bb9a47700ebf92f8dd934bb1712 (patch)
treeebcfc08ee774d6ac3d4db33f123ded22dc18cca5 /runtime/lua/vim/lsp/util.lua
parentc477b19bdca0cc57e08f5fb93f647767ea84dd3e (diff)
downloadrneovim-e4a1be779b9a6bb9a47700ebf92f8dd934bb1712.tar.gz
rneovim-e4a1be779b9a6bb9a47700ebf92f8dd934bb1712.tar.bz2
rneovim-e4a1be779b9a6bb9a47700ebf92f8dd934bb1712.zip
lsp/completion: Expose completion_item under completed_items.user_data.
By passing through completion_item it's now possible for snippet plugins to add LSP snippet support.
Diffstat (limited to 'runtime/lua/vim/lsp/util.lua')
-rw-r--r--runtime/lua/vim/lsp/util.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/runtime/lua/vim/lsp/util.lua b/runtime/lua/vim/lsp/util.lua
index 53e2240ff5..9a51bc2557 100644
--- a/runtime/lua/vim/lsp/util.lua
+++ b/runtime/lua/vim/lsp/util.lua
@@ -240,6 +240,13 @@ function M.text_document_completion_list_to_complete_items(result, prefix)
icase = 1,
dup = 1,
empty = 1,
+ user_data = {
+ nvim = {
+ lsp = {
+ completion_item = completion_item
+ }
+ }
+ },
})
end