You can bind this function to your {
key. And create similar functions for other keys.
CUSTOM_COMMAND_SIG( write_curly ) { View_ID view = get_active_view( app, 0 ); write_string( app, string_u8_litexpr( "{}" ) ); view_set_cursor( app, view, seek_pos( view_get_cursor_pos( app, view ) - 1 ) ); }