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.
This commit is contained in:
Blaž Hrastnik
2020-04-29 10:32:34 +09:00
parent c477b19bdc
commit e4a1be779b
2 changed files with 13 additions and 6 deletions

View File

@@ -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