summaryrefslogtreecommitdiff
path: root/stowables-dotlocal/share/nvim/site/pack/manual/start/nvim-cmp-v0.0.1/lua/cmp/config/sources.lua
blob: cfb09c07cdf1368799575f2db6051b31495292ca (plain)
1
2
3
4
5
6
7
8
9
10
return function(...)
  local sources = {}
  for i, group in ipairs({ ... }) do
    for _, source in ipairs(group) do
      source.group_index = i
      table.insert(sources, source)
    end
  end
  return sources
end