896 B
896 B
Usage on other computers
Backup anything that might already be there (just in case) mv ~/.config/nvim ~/.config/nvim.bak 2>/dev/null || true
Clone fresh git clone git@forgejo.yourserver.com:yourusername/nvim-config.git ~/.config/nvim
Enter the folder and let Lazy bootstrap everything cd ~/.config/nvim nvim-config
Tips
- After you change anything on one machine (init.lua, a snippet, a new plugin, etc.), just do:
git add .
git commit -m "chore: update markdown folding / add new snippet"
git push
- On the other machines:
git pullinside~/.config/nvim(or even better, add a small alias:alias nvimup='cd ~/.config/nvim && git pull'). - If you ever add new snippets or templates, they live in
lua/custom/snippets/→ they will automatically travel with the repo. lazy-lock.jsonis committed → every machine gets the exact same plugin versions.