Create the toolbar handler.

        :type get_fuzzy_match: callable
        :param fuzzy_match: Gets the fuzzy matching config.

        :type get_enable_vi_bindings: callable
        :param get_enable_vi_bindings: Gets the vi (or emacs) key bindings
            config.

        :type get_show_completion_columns: callable
        :param get_show_completion_columns: Gets the show completions in
            multiple or single columns config.

        :type get_show_help: callable
        :param get_show_help: Gets the show help pane config.

        :rtype: callable
        :returns: get_toolbar_items.

def _create_toolbar_handler(self, get_match_fuzzy, get_enable_vi_bindings,
                                get_show_completion_columns, get_show_help):
        """Create the toolbar handler.

        :type get_fuzzy_match: callable
        :param fuzzy_match: Gets the fuzzy matching config.

        :type get_enable_vi_bindings: callable
        :param get_enable_vi_bindings: Gets the vi (or emacs) key bindings
            config.

        :type get_show_completion_columns: callable
        :param get_show_completion_columns: Gets the show completions in
            multiple or single columns config.

        :type get_show_help: callable
        :param get_show_help: Gets the show help pane config.

        :rtype: callable
        :returns: get_toolbar_items.

        """
        assert callable(get_match_fuzzy)
        assert callable(get_enable_vi_bindings)
        assert callable(get_show_completion_columns)
        assert callable(get_show_help)

        def get_toolbar_items(cli):
            """Return the toolbar items.

            :type cli: :class:`prompt_toolkit.Cli`
            :param cli: The command line interface from prompt_toolkit

            :rtype: list
            :return: A list of (pygments.Token.Toolbar, str).
            """
            if get_match_fuzzy():
                match_fuzzy_token = Token.Toolbar.On
                match_fuzzy_cfg = 'ON'
            else:
                match_fuzzy_token = Token.Toolbar.Off
                match_fuzzy_cfg = 'OFF'
            if get_enable_vi_bindings():
                enable_vi_bindings_token = Token.Toolbar.On
                enable_vi_bindings_cfg = 'Vi'
            else:
                enable_vi_bindings_token = Token.Toolbar.On
                enable_vi_bindings_cfg = 'Emacs'
            if get_show_completion_columns():
                show_columns_token = Token.Toolbar.On
                show_columns_cfg = 'Multi'
            else:
                show_columns_token = Token.Toolbar.On
                show_columns_cfg = 'Single'
            if get_show_help():
                show_help_token = Token.Toolbar.On
                show_help_cfg = 'ON'
            else:
                show_help_token = Token.Toolbar.Off
                show_help_cfg = 'OFF'
            if cli.current_buffer_name == 'DEFAULT_BUFFER':
                show_buffer_name = 'cli'
            else:
                show_buffer_name = 'doc'
            return [
                (match_fuzzy_token,
                 ' [F2] Fuzzy: {0} '.format(match_fuzzy_cfg)),
                (enable_vi_bindings_token,
                 ' [F3] Keys: {0} '.format(enable_vi_bindings_cfg)),
                (show_columns_token,
                 ' [F4] {0} Column '.format(show_columns_cfg)),
                (show_help_token,
                 ' [F5] Help: {0} '.format(show_help_cfg)),
                (Token.Toolbar,
                 ' [F9] Focus: {0} '.format(show_buffer_name)),
                (Token.Toolbar,
                 ' [F10] Exit ')
            ]

        return get_toolbar_items