My neovim config, which I update on occasion.
One footgun: I specify shell=/usr/local/bin/zsh in my config because I run on macOS in the fish shell and installed zsh via homebrew. If you don't have this exact setup you'll run into weird issues, so you might want to change that.