Skip to content

wbjin/sync-nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Sync-nvim

What Is Sync?

sync.nvim is a plugin for making syncing with remote instances easier using rsync.

Installation

Using lazy.nvim

{
    "wbjin/sync-nvim",
    config = function()
        require("sync").setup()
    end,
}

Usage

Set local directory to source from

:SyncInit

will make a config file in .nvim/config.lua in the root directory of your project

return {
  dest_path = ".",
  local_path = "",
  remote = "",
  includes = {"LICENSE", "lua/sync/init.lua"},
}

The default destination path is the root of your remote and the default local path is the root of your project.

Sync

:Sync

will call rsync and sync the remote with the local path provided

<leader>rs

is the default mapping for calling Sync

SyncInit

:SyncInclude

will call rsync only for the files and directories specified in the includes list and sync the remote with the local path provided

About

Plugin for syncing directory with remote

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages