Preheat the oven to 350°F . Line two baking sheets with parchment paper.
In a medium sized bowl, mix the flour, baking soda, salt, and coconut flakes. Set aside.
Melt the butter in a microwave safe bowl.
Mix the butter and sugar until smooth.
Add the vanilla and egg to the butter mixture. Mix again until smooth.
Add the flour mixture to the butter mixture. Mix with a spatula or a wooden spoon so the dough comes together.
Mix in the chopped pecans.
Using a mini ice cream or cookie scoop, place the cookies on the baking sheets 2 inches apart from each other. Press a pecan on top of each cookie.
Bake in the oven for 14 minutes. Rotate the sheets halfway so they bake evenly.
Let the cookies cool on the sheets for 5 minutes and then transfer them onto cooling racks using a spatula.