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

Commit e9edc3f

Browse files
committed
fix: modified the integration with vim-vsnip-integ
1 parent 6bbe4b4 commit e9edc3f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lua/completion.lua

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,12 @@ M.on_attach = function(opt)
215215
' "\\<c-e>\\<CR>" : "\\<CR>"',
216216
{silent=false, noremap=false, expr=true})
217217
end
218+
-- overwrite vsnip_integ autocmd since we handle it on ourself in confirmCompletion
219+
if vim.fn.exists("#vsnip_integ") then
220+
api.nvim_command("augroup vsnip_integ")
221+
api.nvim_command("autocmd!")
222+
api.nvim_command("augroup end")
223+
end
218224
api.nvim_buf_set_var(0, 'completion_enable', 1)
219225
if opt == nil then return end
220226
local sorter = opt.sorter

0 commit comments

Comments
 (0)