Synchronizing Neovim's configurations
Support for MacOS, Linux (not test on Windows yet!)
cargo install neo-syncExport GITHUB_ACCESS_TOKEN env by your Github Access Token
export GITHUB_ACCESS_TOKEN=<your-access_token>neo-sync <SUBCOMMAND>-
To Upload Neovim's config file:
neo-sync upload
It will try to upload the file on default path (
$HOME/.config/nvim/init.vim), or provide-foption if your file is in other location. After uploaded, angist.txtwhich will save thegist_idshould be created and locate on$HOME/.config/neo-sync/gist.txt -
To Download Neovim's config file:
neo-sync download
neo-syncwill look for thegist_idin$HOME/.config/neo-sync/gist.txtand use this id for quering. If you don't have this file, you will need to paste your id when it asked. After that, your Neovim's config file should be updated. Default location will be$HOME/.config/nvim/init.vimunless you use-foption.
For more information, please run neo-sync -h.