The title of the topic is probably a bit weird so let me explain.
At work I need to use VSCode, so I would like to have a way to efficiently source the only plugins I need for my “VSCode” session, while preserving all the plugins I need for the “native” session.
Right now I’m using packer, but making it to default plugins installation to opt instead of start doesn’t seem to do the trick.
What I would like to achieve is to be able to use nvim -u .lua to load only specific plugins.
AFAIK by reading NeoVim’s doc, using opt plugins should allow me to achieve this by loading the needed plugins on demand by running vim.cmd(‘packadd ’), but this approach needs some kind of dependency solving.
Thanks for your reply!
What I don’t like about this setup is that I would have duplicated plugins… but IMO it could be the easiest way to achieve that.