Most of the following is from the official LazyVim configuration.
- Backup your old nvim configuration:
# required
mv ~/.config/nvim{,.bak}
# optional but recommended
mv ~/.local/share/nvim{,.bak}
mv ~/.local/state/nvim{,.bak}
mv ~/.cache/nvim{,.bak}
- Clone the repo:
git clone https://github.com/lthamsen/nvim.git ~/.config/nvim