folke/dot

Dynamic structuring of plugins

mattleong opened this issue · 0 comments

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!