redyf / Neve

Neve is a Neovim configuration built with Nixvim, it allows you to use Nix language to manage Neovim plugins/options.
MIT License
152 stars 61 forks source link

Fix Pressing Enter in Alpha Greeter: Correct on_press Function Definitions #95

Closed snorreks closed 4 months ago

snorreks commented 4 months ago

Summary

This PR fixes an issue with the on_press function definitions in the alpha-nvim configuration, which caused an error when pressing Enter in the options of the alpha greeter. The previous implementation resulted in an E5108 error due to on_press values being interpreted as strings instead of functions.

Changes

Issue

Fixes the E5108 error: "attempt to call a string value" in alpha-nvim, which occurred when pressing Enter in the options of the alpha greeter on Neovim startup.

Testing

Additional Notes

This change ensures that the alpha-nvim configuration is more robust and prevents similar issues in the future, providing a smooth experience when interacting with the alpha greeter options.

redyf commented 4 months ago

Thank you very much for your contribution!