Can we use tmPreferences too or is it required to write a plugin?
How to show pre-defined completions
jps
#2
It has to be done via the API, something along the lines of:
from AutoComplete import AutoCompleteCommand
def sampleCompletions(view, pos, prefix, completions):
return "xyzzy", "idkfa"] + completions
AutoCompleteCommand.completionCallbacks'sampleCompletions'] = sampleCompletions
0 Likes