return { { "danymat/neogen", config = function() require("neogen").setup({ snippet_engine = "luasnip" }) end, }, { "L3MON4D3/LuaSnip", -- follow latest release. version = ".*", -- Replace by the latest released major (first number of latest release) -- install jsregexp (optional!). build = "make install_jsregexp", }, { "saadparwaiz1/cmp_luasnip" }, config = function() local ls = require("luasnip") vim.keymap.set({ "i" }, "", function() ls.expand() end, { silent = true }) vim.keymap.set({ "i", "s" }, "", function() ls.jump(1) end, { silent = true }) vim.keymap.set({ "i", "s" }, "", function() ls.jump(-1) end, { silent = true }) vim.keymap.set({ "i", "s" }, "", function() if ls.choice_active() then ls.change_choice(1) end end, { silent = true }) end, }