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

fix(ui.lua): defer fzf-lua.actions require until after setup #43

Closed
wants to merge 1 commit into from

Conversation

albertoCaroM
Copy link

Move the 'require("fzf-lua.actions")' statement inside the configuration function to prevent initialization errors during first-time Neovim setup.

[Problem]
When the configuration is first run, fzf-lua might not be installed yet, causing the top-level 'require' call to fail.

[Solution]
Wrap the require statement within the plugin's setup function to ensure the dependency is only loaded after the plugin manager has installed fzf-lua.

[Outcome]
Prevents startup errors that occurred when initializing the Neovim configuration before all dependencies were fully installed.

Move the 'require("fzf-lua.actions")' statement inside the configuration
function to prevent initialization errors during first-time Neovim setup.

[Problem]
When the configuration is first run, fzf-lua might not be installed yet,
causing the top-level 'require' call to fail.

[Solution]
Wrap the require statement within the plugin's setup function to ensure
the dependency is only loaded after the plugin manager has installed
fzf-lua.

[Outcome]
Prevents startup errors that occurred when initializing the Neovim
configuration before all dependencies were fully installed.
@Alan-TheGentleman
Copy link

Hello ! in reality is not needed anymore, as now LazyVim is using Snacks.picker which I found way better, this is already fixed on my other branch, and will do the change here :)

Thanks for the pr !!

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