local M = {} local luasnip = require("luasnip") local function reload() require("luasnip.loaders.from_vscode").lazy_load() end function M.setup() vim.keymap.set("i", "", function() if luasnip.jumpable(1) then return "lua require('luasnip').jump(1)" else return "" end end, { expr = true }) vim.keymap.set("i", "", function() luasnip.jump(-1) end) vim.keymap.set("n", "rs", reload, { desc = "Reload luasnip snippets" }) reload() end return M