snippet engine is not configured
qustavo opened this issue · 2 comments
qustavo commented
When I try to select the snippet hint displayed in the completion menu, I get this error:
E5108: Error executing lua .../.vim/plugged/nvim-cmp/lua/cmp/config/default.lua:24: snippet engine is not configured.
stack traceback:
[C]: in function 'error'
.../.vim/plugged/nvim-cmp/lua/cmp/config/default.lua:24: in function 'expand'
.../.vim/plugged/nvim-cmp/lua/cmp/core.lua:417: in function <.vim/plugged/nvim-cmp/lua/cmp/core.lua:378>
.../.vim/plugged/nvim-cmp/lua/cmp/utils/feedkeys.lua:51: in function <.vim/plugged/nvim-cmp/lua/cmp/utils/feedkeys.lua:49>
Not sure what's missing
dmitmel commented
What is your nvim-cmp config? You must set the snippet engine.
cmp.setup({
snippet = {
expand = function(args)
vim.fn["vsnip#anonymous"](args.body)
end,
},
-- The rest of your configs...
})
qustavo commented
Indeed, that was the problem, thanks.