import mimetypes


def get_symbol_parser(path, plugins):
    """
    Gets the symbol parser for the file's mimetype.

    :param path: path of the file.
    :param plugins: the list of parser plugins.

    :returns: SymbolParserPlugin.
    """
    mime = mimetypes.guess_type(path)[0]
    for plugin in plugins:
        if mime in plugin.mimetypes:
            return plugin
    return None