Clean Paste in Neovim: Paste Text Without Newlines and Leading Whitespace

How to paste code in Neovim without unwanted newlines and leading whitespace.