def on_hover(self, view, point, hover_zone): # run hover only if its text if hover_zone == sublime.HOVER_TEXT: a = ToolTipHelperCommand(view, point); a.run('');