Skip to content

feat: Allow lazy.nvim to just handle default config for a plugin#12

Open
JustBarnt wants to merge 4 commits intoroobert:mainfrom
JustBarnt:main
Open

feat: Allow lazy.nvim to just handle default config for a plugin#12
JustBarnt wants to merge 4 commits intoroobert:mainfrom
JustBarnt:main

Conversation

@JustBarnt
Copy link
Contributor

This PR will default plugins that do not have a setup.lua.example to just use opts = {} 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_creation which defauts to true; to retain previous behavior or the configuration opening after its installed. It can be set to false though to prevent the file from opening.

JustBarnt and others added 3 commits July 11, 2025 16:30
…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
local disclaimer = [[
-- No example configuration was found for this plugin.
--
-- So a default has been configured.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! I think this should be part of the previous lines sentence..

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So No example configuration was found this plugin, a default has been configured.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants