atomi wrote:So okay. That solves the triggering unwanted autocompletes in tags.
But completions in sublime-completions files arent being loaded into the autocomplete list (even with just text.html as the scope).
I think it might be that ST is expecting an array/list to be returned by the plugin when there is no autocomplete so that it has something to extend or append to.
Yes I think you need to return an empty list:
- Code: Select all
if 'tag' in scope_name(pt):
Also sublime.INHIBIT_WORD_COMPLETIONS | sublime.INHIBIT_EXPLICIT_COMPLETIONS
is requesting that only your completions will appear in the list.
I still think you should test a small subset of your completions before getting too deeply involved. You can suppress them from appearing within 'tag' scope, but if you edit within a tag they won't reappear. And <b>Typing this text</b> will cause your completions to pop up for every letter typed.
"I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.