aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/util.lua
diff options
context:
space:
mode:
authorMatthieu Coudron <mattator@gmail.com>2020-04-30 15:25:15 +0200
committerGitHub <noreply@github.com>2020-04-30 15:25:15 +0200
commit42b441738d833543c98c97cad0c200bde28ae233 (patch)
tree6487aa3db8e2b85a4b61a9eecd465c83184c3b62 /runtime/lua/vim/lsp/util.lua
parentf9055c585f597fe4ea8ecb990927a2826234393c (diff)
parente4a1be779b9a6bb9a47700ebf92f8dd934bb1712 (diff)
downloadrneovim-42b441738d833543c98c97cad0c200bde28ae233.tar.gz
rneovim-42b441738d833543c98c97cad0c200bde28ae233.tar.bz2
rneovim-42b441738d833543c98c97cad0c200bde28ae233.zip
Merge pull request #12204 from archseer/lsp-user-data
lsp/completion: Expose completion_item under completed_items.user_data + vim-patch:8.2.0084
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 7d4dc072e5..68f3b35df3 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