return function() local ls = require("luasnip") -- Expand snippet vim.keymap.set("i", "", function() ls.expand() end, { silent = true }) -- Jump forward/backward vim.keymap.set({ "i", "s" }, "", function() ls.jump(1) end, { silent = true }) vim.keymap.set({ "i", "s" }, "", function() ls.jump(-1) end, { silent = true }) -- Change choice in choice node vim.keymap.set({ "i", "s" }, "", function() if ls.choice_active() then ls.change_choice(1) end end, { silent = true }) -- Optionally, load snippets here if you have them -- require("luasnip.loaders.from_vscode").lazy_load() end