smjonas / snippet-converter.nvim

Bundle snippets from multiple sources and convert them to your format of choice.
Mozilla Public License 2.0
174 stars 4 forks source link

feat: add option to disable generating package.json file #8

Closed smjonas closed 2 years ago

smjonas commented 2 years ago

@doubleChu I have implemented your feature request in this PR. Please test it and let me know what you think about the API and if everything works as expected for you. Doc updates are still missing.

You can now do the following on a per output format basis:

output = {
  vscode_luasnip = {
    "output_path",
    opts = {
      generate_package_json = false,  
    },
  }
}

Closes #7.

doubleChu commented 2 years ago

Everything works just as expected, it's pretty neat. A small mistake: 'outputs' in your example should be 'output', I copied and pasted at first and the setup failed.