Skip to content

Commit

Permalink
refactor: tidy codes
Browse files Browse the repository at this point in the history
Signed-off-by: Jack Cherng <[email protected]>
  • Loading branch information
jfcherng committed Feb 21, 2024
1 parent 367ecaa commit d00b1a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugin/commands/auto_set_syntax.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def run_auto_set_syntax_on_view(
# prerequsites
if not (
(window := view.window())
and is_syntaxable_view(view, must_plaintext)
and is_syntaxable_view(view, must_plaintext=must_plaintext)
and (syntax_rule_collection := G.syntax_rule_collections.get(window))
):
return False
Expand Down
2 changes: 1 addition & 1 deletion plugin/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from .utils import is_plaintext_syntax, is_transient_view, stable_unique


def is_syntaxable_view(view: sublime.View, must_plaintext: bool = False) -> bool:
def is_syntaxable_view(view: sublime.View, *, must_plaintext: bool = False) -> bool:
"""Determinates whether the view is what we want to set a syntax on."""
return bool(
view.is_valid()
Expand Down

0 comments on commit d00b1a3

Please sign in to comment.