Synchronizing Neovim's configurations
Support for MacOS, Linux (not test on Windows yet!)
bash
cargo install neo-sync
Export GITHUB_ACCESS_TOKEN
env by your Github Access Token
bash
export GITHUB_ACCESS_TOKEN=<your-access_token>
bash
neo-sync <SUBCOMMAND>
- To Upload Neovim's config file:
bash
neo-sync upload
It will try to upload the file on default path ($HOME/.config/nvim/init.vim
), or provide -f
option if your file is in other location.
After uploaded, an gist.txt
which will save the gist_id
should be created and locate on $HOME/.config/neo-sync/gist.txt
bash
neo-sync download
neo-sync
will look for the gist_id
in $HOME/.config/neo-sync/gist.txt
and 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.vim
unless you use -f
option.For more information, please run neo-sync -h
.