Added completion mode feature

Either strict or loose completion mode. Can be configured in the
config.json file within editor section.