I’m using this completions file in my Packages/User folder:
{
“scope”:“source.lua”,
“completions”:[
“love.filesystem.newFileData”
]
}
If I type “lov” I get the auto-completion pop-up with my completion. If I continue typing “love.” the completion disappears. If I continue typing “love.fi” I get the auto-complete pop-up again. Now if I hit tab I get:
love.love.filesystem.newFileData
There seems to be a problem having “.” in the completion string. So I tried adding this to my preferences:
“auto_complete_triggers”: [ {“selector”: “source.lua”, “characters”: “.”} ]
However, I still get the same result from typing “love.fi” plus tab.
Is there something I can do to get this working better? Is there a better way to provide API completions (for Lua)? I’m working with Love2D and all of the packages I’ve found for it seem to have problems with completions.