folke / dot

☕️ My Dot Files
Apache License 2.0
866 stars 52 forks source link

Dynamic structuring of plugins #13

Closed mattleong closed 1 year ago

mattleong commented 1 year ago

Hi, I currently run a small nvim distro and could use some guidance on how to implement additional plugins, beyond what is set up by default for the distro.

Example implementation for default plugins:

require('lazy').setup('cosmic.plugins', {
  ui = {
    border = 'rounded',
  },
})

Requested/wanted implementation:

require('lazy').setup({
  'cosmic.plugins',
  'another/plugin'
}, {
  ui = {
    border = 'rounded',
  },
})

Where cosmic.plugins is sourced from lua/cosmic/plugins as expected and another/plugin is sourced from git.

This would be very helpful for me with defining a set of "default" plugins.

I realize there are alternatives but none that would allow me the ease of use of simply adding cosmic.plugins as the source for my default plugins.

Any changes or advice would be greatly appreciated!