diff --git a/plugin/commands/auto_set_syntax.py b/plugin/commands/auto_set_syntax.py index 2296ac36..ddd21a0b 100644 --- a/plugin/commands/auto_set_syntax.py +++ b/plugin/commands/auto_set_syntax.py @@ -1,10 +1,8 @@ from __future__ import annotations import re -from collections.abc import Iterable, Mapping from functools import wraps from itertools import chain -from operator import itemgetter from pathlib import Path from typing import Any, Callable, TypeVar, cast @@ -13,7 +11,6 @@ from ..constants import PLUGIN_NAME, RE_ST_SYNTAX_TEST_LINE, RE_VIM_SYNTAX_LINE from ..helpers import is_syntaxable_view, resolve_magika_label_with_syntax_map -from ..libs import websocket from ..logger import Logger from ..rules import SyntaxRuleCollection from ..settings import get_merged_plugin_setting, get_merged_plugin_settings, pref_trim_suffixes @@ -23,9 +20,7 @@ from ..utils import ( find_syntax_by_syntax_like, find_syntax_by_syntax_likes, - first_true, get_syntax_name, - get_view_by_id, is_plaintext_syntax, list_trimmed_filenames, list_trimmed_strings,