One lithium (Li) atom can combine with one fluorine (F) atom. Together, they make the formula LiF. Fluorine has seven electrons of it's own. Lithium gives up its one electron to make both atoms happy. So the fluorine atom has eight electrons, and a filled outer shell.
An image is attached for reference.