Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Module]: rocks-config for common configuration paradigms #72

Closed
vhyrro opened this issue Dec 11, 2023 · 2 comments
Closed

[Module]: rocks-config for common configuration paradigms #72

vhyrro opened this issue Dec 11, 2023 · 2 comments
Assignees

Comments

@vhyrro
Copy link
Collaborator

vhyrro commented Dec 11, 2023

The default (expected) way to handle plugins within one's configuration is to place plugins in a plugins/ RTP directory and check for the existence of the plugin with pcall.

A rocks-config module would allow users to specify per-plugin configuration files (if the plugin is installed and loaded). A global option could also be set which would specify the default directory where files for plugins would be sourced, e.g.:

[plugins]
# plugins go here...

[config]
path = "plugins/" # search in `$CONFIG_DIR/lua/plugins/xyz.lua` for each installed plugin
@vhyrro
Copy link
Collaborator Author

vhyrro commented Dec 12, 2023

Partially complete! https://luarocks.org/modules/neorocks/rocks-config.nvim

Things TODO:

  • Autoinvoke setup() calls
  • Allow users to specify per-plugin configurations directly in toml

@vhyrro
Copy link
Collaborator Author

vhyrro commented Dec 26, 2023

This has since been done and now works flawlessly for the most part! :D

@vhyrro vhyrro closed this as completed Dec 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants