How to know the electronic configuration of a compound
COF2 as CoF2, cobalt fluoride is likely to be ionic.
Fluorine normally has a valency of 1 and is therefore not likely to be a central atom.
The central atom in a molecule needs a valency >1 eg the O in H2O has a valency of 2, H=1, so O is the central atom.
In the above example, Carbon has a valency of 4 is often a central atom with 4 covalent bonds attached to it varying from single to double to triple.
O has a valency of 2.
C = 2,4 so needs a share of another 4 electrons for electronic stability.
O = 2,6 so needs a share of another 2 electrons for electronic stability.
F = 2,7 so needs a share of another 1 electron for electronic stability.
The dots in these pics. represent electrons in the valence shell (bonding electrons). If you know about hybridisation, they can involve s and p orbitals eg Carbon 1s2, 2s2, 2p1, 2p1 and when bonding, the 4 outer electrons are rearranged into new hybrid bonding orbitals.
Not sure of the details you want here.
. .. ..
. C . : O . : F .
. . ..
These come together with C at the centre with a double bond (sigma and pi) to oxygen, two separate sigma bonds to fluorine.