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

Commit 669f90c

Browse files
committed
fix: vsnip not working correctly
1 parent fb16991 commit 669f90c

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

lua/completion.lua

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -99,13 +99,7 @@ local function applyAddtionalTextEdits(completed_item)
9999
local item = completed_item.user_data.lsp.completion_item
100100
-- vim-vsnip have better additional text edits...
101101
if vim.fn.exists('g:loaded_vsnip_integ') == 1 then
102-
api.nvim_call_function('vsnip_integ#do_complete_done', {
103-
{
104-
completed_item = completed_item,
105-
completion_item = item,
106-
apply_additional_text_edits = true
107-
}
108-
})
102+
api.nvim_call_function('vsnip_integ#on_complete_done', { completed_item })
109103
else
110104
if item.additionalTextEdits then
111105
local bufnr = api.nvim_get_current_buf()

0 commit comments

Comments
 (0)