nvim-neorocks / rocks-config.nvim

Allow rocks.nvim to help configure your plugins.
GNU General Public License v3.0
55 stars 2 forks source link

feat: add plugin bundles #32

Closed vhyrro closed 3 months ago

vhyrro commented 4 months ago

This pull request implements the concept of "plugin bundles", i.e. collections of plugins that can be batched together under a single name (as well as a single configuration file).

Currently bundles take on the following form:

[plugins]
yada = "dev"
yadayada = "dev"
foobar = "dev"

[bundles]
mybundle.items = [
    "yada",
    "yadayada",
    "foobar",
]

If a lua/plugins/mybundle.lua is supplied, the setup will only be executed for that bundle and individual yada.lua, yadayada.lua and foobar.lua files will be ignored (open to discussion on this one).

TODOs:

Open to discussion about any part of the design :)

github-actions[bot] commented 4 months ago

Review Checklist

Does this PR follow the Contribution Guidelines? Following is a partial checklist:

Proper conventional commit scoping:

If applicable:

vhyrro commented 3 months ago

The CI is tripping but the code looks solid for the time being - tried several edge cases. Might be worth a shot to attach a testing library to this at some point.

mrcjkb commented 3 months ago

The CI is tripping but the code looks solid for the time being - tried several edge cases. Might be worth a shot to attach a testing library to this at some point.

Fixed CI on main