def show(self, callback):
        self.callback = callback

        options = dict(
            index=self.index
        )

        try:
            response = self.client.indices.get_settings(**options)
        except Exception as e:
            return sublime.error_message("Error: {}".format(e))

        self.choices = DEFAULT_ANALYZERS.copy()

        analyzers = []

        try:
            analyzers = response[self.index]["settings"]["index"]["analysis"]["analyzer"].keys()
        except __HOLE__:
            pass

        for analyzer in analyzers:
            self.choices.append([
                analyzer,
                "Custom Analyzer: {}".format(analyzer)
                ])

        self.choices += DEFAULT_ANALYZERS
        self.choices.sort()
        self.window.show_quick_panel(self.choices, self.on_done)
dataset/ETHPy150Open KunihikoKido/sublime-elasticsearch-client/panel/analyzer_list_panel.py/AnalyzerListPanel.show