sync.nvim
is a plugin for making syncing with remote instances easier using rsync
.
Using lazy.nvim
{
"wbjin/sync-nvim",
config = function()
require("sync").setup()
end,
}
: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
will call rsync and sync the remote with the local path provided
<leader>rs
is the default mapping for calling Sync
:SyncInclude
will call rsync only for the files and directories specified in the includes
list and sync the remote with the local path provided