neo-sync

Crates.ioneo-sync
lib.rsneo-sync
version0.0.8
sourcesrc
created_at2023-04-23 10:40:27.86975
updated_at2023-09-17 10:01:11.514644
descriptionSynchronizing Neovim's configurations
homepage
repositoryhttps://github.com/nkien0204/neo-sync
max_upload_size
id846473
size43,342
kien Nguyen (nkien0204)

documentation

README

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.

Commit count: 28

cargo fmt