Luckily this is surprisingly easy to do in Sublime Text by using the wonderful SublimeJEDI package (easily installed with Sublime Package Control).
As a prerequisite you need to have the Maya devkit 2016 2017 installed as it no longer comes included in Maya by default.
If you have other python related packages installed in Sublime Text, other than SublimeJEDI you should remove or disable them until you get completions working, then add them back in later. This will let you debug if you did something wrong or there is another conflict.
With SublimeJEDI installed, open the Sublime settings file: