def on_new(self, view): Linter.assign(view) settings = view.settings() syntax = settings.get('syntax') def on_change(): if settings.get('syntax') != syntax: Linter.assign(view) settings.add_on_change('lint-syntax', on_change)
def on_change(): if settings.get('syntax') != syntax: Linter.assign(view)