Apply a basecoat and a top coat. These act as a foundation and a shield for your nail color.
Another trick is to apply a thin coat of nailpolish across the tip of the nail (horizontally). Most chips will start from tiny cracks at the top, and this invisible barrier will help prevent the cracks from even starting.