8 releases
0.0.8 | Sep 17, 2023 |
---|---|
0.0.7 | Apr 27, 2023 |
#199 in Configuration
35 downloads per month
14KB
336 lines
neo-sync
Synchronizing Neovim's configurations
How to
Support for MacOS, Linux (not test on Windows yet!)
Setup
cargo install neo-sync
Export GITHUB_ACCESS_TOKEN
env by your Github Access Token
export GITHUB_ACCESS_TOKEN=<your-access_token>
Run
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-f
option if your file is in other location. After uploaded, angist.txt
which will save thegist_id
should be created and locate on$HOME/.config/neo-sync/gist.txt
-
To Download Neovim's config file:
neo-sync download
neo-sync
will look for thegist_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
.
Dependencies
~6–22MB
~252K SLoC