local snipconv_status_ok, snippet_converter = pcall(require, "snippet-converter") if not snipconv_status_ok then return end config = function() local template = { -- name = "t1", (optionally give your template a name to refer to it in the `ConvertSnippets` command) sources = { ultisnips = { -- Add snippets from (plugin) folders or individual files on your runtimepath... "./vim-snippets/UltiSnips", "./latex-snippets/tex.snippets", }, snipmate = { }, }, output = { -- Specify the output formats and paths vscode_luasnip = { vim.fn.stdpath("config") .. "/luasnip_snippets", opts = { generate_package_json = false, } }, }, } require("snippet_converter").setup { templates = { template }, -- To change the default settings (see configuration section in the documentation) -- settings = {}, } end