-- Snippets plugin
--- @type LazyPluginSpec
return {
  "L3MON4D3/LuaSnip",
  -- Snippets collection
  dependencies = { "rafamadriz/friendly-snippets" },
  config = function()
    local vsCodeLoader = require("luasnip/loaders/from_vscode")

    -- Load friendly-snippets
    vsCodeLoader.lazy_load()

    -- Load my custom snippets
    vsCodeLoader.lazy_load({
      paths = { "./snippets" },
    })
  end,
  run = "make install_jsregexp",
}
