Auto detect scala files and fixed omnicomplete, still need to debug