nvim: new plugin loading idea
This commit is contained in:
parent
d3525f29eb
commit
5cca44e8f5
1 changed files with 21 additions and 6 deletions
|
@ -11,9 +11,24 @@ require('blake.settings')
|
||||||
-- - If a plugin toggle is off,
|
-- - If a plugin toggle is off,
|
||||||
-- - the configuration for it should not be run,
|
-- - the configuration for it should not be run,
|
||||||
-- - and the plugin should not be loaded
|
-- - and the plugin should not be loaded
|
||||||
|
-- Downsides:
|
||||||
|
-- - requires me to add the plugin in two places (one in the plugin list, and again in the toggle list)
|
||||||
-- OR
|
-- OR
|
||||||
-- - Find out how to get a list of loaded plugins
|
-- - Find out how to get a list of loaded plugins
|
||||||
-- - Load the configuration for each plugin
|
-- - Load the configuration for each plugin
|
||||||
|
-- Downsides:
|
||||||
|
-- - May not be plugin manager-independent
|
||||||
|
-- OR
|
||||||
|
-- - Create a file for each plugin that requires configuration and load them from their own files.
|
||||||
|
-- - I think this would be the most modular approach, as it would make my config more independent specific plugin managers.
|
||||||
|
-- Downsides:
|
||||||
|
-- - Lots of files (could be a good thing)
|
||||||
|
-- OR
|
||||||
|
-- - Make a list of plugins ('tpope/surround' style)
|
||||||
|
-- - load all plugins using whatever plugin manager in a for loop
|
||||||
|
-- - in the for loop, optionally load the configuration for each plugin based on its name
|
||||||
|
-- Downsides:
|
||||||
|
-- - Hardest (requires me to make a for loop, and I don't know lua)
|
||||||
-- Plugins to install:
|
-- Plugins to install:
|
||||||
-- lightspeed.nvim
|
-- lightspeed.nvim
|
||||||
-- lightbulb?
|
-- lightbulb?
|
||||||
|
|
Loading…
Add table
Reference in a new issue