feat: Allow lazy.nvim to just handle default config for a plugin#12
Open
JustBarnt wants to merge 4 commits intoroobert:mainfrom
Open
feat: Allow lazy.nvim to just handle default config for a plugin#12JustBarnt wants to merge 4 commits intoroobert:mainfrom
lazy.nvim to just handle default config for a plugin#12JustBarnt wants to merge 4 commits intoroobert:mainfrom
Conversation
…ed with `opts = {}` per lazy.nvim recommendation will fix roobert#11
Defaulted to `opts = {}` and uncommented out the repo link when `setup.lua.example` is not there.
Also added a configuration option `open_config_after_creation` which defaults to true, to retain previous behavior.
If set false; it will not open the configuration after creation
roobert
reviewed
Jul 14, 2025
lua/activate/utils.lua
Outdated
| local disclaimer = [[ | ||
| -- No example configuration was found for this plugin. | ||
| -- | ||
| -- So a default has been configured. |
Owner
There was a problem hiding this comment.
Thanks for the PR! I think this should be part of the previous lines sentence..
Contributor
Author
There was a problem hiding this comment.
So No example configuration was found this plugin, a default has been configured.
roobert
approved these changes
Jul 14, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR will default plugins that do not have a
setup.lua.exampleto just useopts = {}and removes the commented out repo link so the plugin will just work without having to edit the file.I also added a configuration
open_config_after_creationwhich defauts to true; to retain previous behavior or the configuration opening after its installed. It can be set tofalsethough to prevent the file from opening.