Better implementation of anonymous function completions

Only do completions if function is in a variable 

example 
````LUA
somevar = function()
````
will now trigger this