How to expands snippets using nvim-compe and vim-vsnip?

Hmm, it seem’s related to this issue and incorrectly porting the mapping to lua.

I set the maps using vim.cmd [[ ... ]] and removed vim-endwise and now it seems to work.