Skip to content
This repository was archived by the owner on Oct 13, 2021. It is now read-only.

Commit e871add

Browse files
authored
fix user_data is nil
1 parent 84ef386 commit e871add

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lua/completion.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ end
9696
-- handle completeDone stuff here
9797
local function hasConfirmedCompletion()
9898
local completed_item = api.nvim_get_vvar('completed_item')
99+
if completed_item.user_data == nil then return end
99100
if completed_item.user_data.lsp ~= nil then
100101
applyAddtionalTextEdits(completed_item)
101102
if vim.g.completion_enable_snippet == "snippets.nvim" then

0 commit comments

Comments
 (0)