Skip to content

nkien0204/neo-sync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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, an gist.txt which will save the gist_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 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.

About

A CLI for synchronizing Neovim's configurations

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages