Add smart tab function for omni completion