def create_toolbar_tokens_func(get_is_refreshing, show_fish_help):
token = Token.Toolbar<EOL>def get_toolbar_tokens(cli):<EOL><INDENT>result = []<EOL>result.append((token, '<STR_LIT:U+0020>'))<EOL>if cli.buffers[DEFAULT_BUFFER].always_multiline:<EOL><INDENT>result.append((token.On, '<STR_LIT>'))<EOL><DEDENT>else:<EOL><INDENT>result.append((token.Off, '<STR_LIT>'))<EOL><DEDENT>if cli.buffers[DEFAULT_BUFFER].always_multiline:<EOL><INDENT>result.append((token,<EOL>'<STR_LIT>'))<EOL><DEDENT>if cli.editing_mode == EditingMode.VI:<EOL><INDENT>result.append((<EOL>token.On,<EOL>'<STR_LIT>'.format(_get_vi_mode(cli))<EOL>))<EOL><DEDENT>if show_fish_help():<EOL><INDENT>result.append((token, '<STR_LIT>'))<EOL><DEDENT>if get_is_refreshing():<EOL><INDENT>result.append((token, '<STR_LIT>'))<EOL><DEDENT>return result<EOL><DEDENT>return get_toolbar_tokens<EOL>
Return a function that generates the toolbar tokens.