Skip to content

Instantly share code, notes, and snippets.

@mauroreisvieira
Last active April 7, 2020 16:59
Show Gist options
  • Save mauroreisvieira/c28d32222e4bddd41ef38a9843b75579 to your computer and use it in GitHub Desktop.
Save mauroreisvieira/c28d32222e4bddd41ef38a9843b75579 to your computer and use it in GitHub Desktop.
class TestListener(sublime_plugin.EventListener):
def on_query_completions(self, view, prefix, locations):
return ([
sublime.CompletionItem(
trigger="tmartin",
annotation="OverrideAudit Author",
completion="Terence Martin",
completion_format=sublime.COMPLETION_FORMAT_TEXT,
kind=(sublime.KIND_ID_AMBIGUOUS, "⬣", "Cool people to know")
)
],
sublime.INHIBIT_WORD_COMPLETIONS|sublime.INHIBIT_EXPLICIT_COMPLETIONS)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment