You are always 100% vested in your 401(k) deferrals.
You are always 100% vested in non-discretionary, employer Safe Harbor contributions
Terms of your company’s plan dictate if other “sources” of contributions, e.g., regular matches, profit sharing, etc., are subject to a vesting schedule.