- Updated snippet expansion function to use Lua syntax. - Added new mappings for scrolling, completing, closing, selecting next/previous items, and confirming with replacement behavior. - Ensured compatibility with Lua syntax in the Nix environment.