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
Updated the on_press values to be properly defined as Lua functions using the __raw attribute.
Ensured that each on_press value is correctly formatted as a Lua function.
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
Verified that the on_press functions are now correctly executed without errors.
Tested the functionality of each button in the alpha greeter to ensure they perform the intended actions.
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.
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 toon_press
values being interpreted as strings instead of functions.Changes
on_press
values to be properly defined as Lua functions using the__raw
attribute.on_press
value is correctly formatted as a Lua function.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
on_press
functions are now correctly executed without errors.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.