local env = require("my.helpers.env") local M = { "L3MON4D3/LuaSnip", -- snippeting engine cond = env.vscode.not_active() } local function reload() require("luasnip.loaders.from_vscode").lazy_load() end function M.config() local luasnip = require("luasnip") 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 = "[R]eload [s]nippets", }) reload() end return M