vhyrro / luarocks.nvim

Easily install luarocks with lazy.nvim
The Unlicense
81 stars 6 forks source link

[feture request] more flexible package config #30

Open baltevl opened 3 months ago

baltevl commented 3 months ago

I ran into an issue where i wanted to install a package from a different server and the package was expecting more cmd args to install properly. Namely this was ldbus. I propose a solution where each package has its own table. Something like

{
  "vhyrro/luarocks.nvim",
  opts = {
    rocks = { 
      {"fzy", <url>, { list, of, args}},
      {"pathlib.nvim ~> 1.0"}, -- leaf empty for default
  },
}

Of course this gets cluttered really fast and it would require a few design changes if I'm not wrong. I'd be interested in hearing more thoughts on this