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

feat: auto-setup with lazy-loading #12

Merged
merged 1 commit into from
Aug 13, 2024

Conversation

mrcjkb
Copy link
Contributor

@mrcjkb mrcjkb commented Aug 12, 2024

Hey 👋

I'd love to use this plugin, but I don't want to have to call a setup function to use it if I'm happy with the defaults.
This PR proposes to separate configuration from initialisation, automatically creating the DiffEditor command (initialising lazily upon the first invocation).

See also: https://github.com/nvim-neorocks/nvim-best-practices?tab=readme-ov-file#zap-initialization

@julienvincent
Copy link
Owner

Sure makes sense to me! Thanks.

@julienvincent julienvincent merged commit 54d5a89 into julienvincent:master Aug 13, 2024
3 checks passed
@mrcjkb mrcjkb deleted the push-lwryutppqutp branch August 13, 2024 09:33
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