This is my neovim config. Highly inspired by ThePrimeagen, and other youtube and reddit community.
cd ~/.config
nvim --headless -c 'autocmd User PackerComplete quitall' -c 'PackerSync'
git clone --depth 1 https://github.com/wbthomason/packer.nvim ~/.local/share/nvim/site/pack/packer/start/packer.nvim
:PackerSync
and relaunch.