Skip to content

Latest commit

 

History

History
53 lines (42 loc) · 1012 Bytes

README.md

File metadata and controls

53 lines (42 loc) · 1012 Bytes

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