Rsync wrapper for Neovim
-
Create a config file in the root of your project
./.nvim/rsync.lua
return { username = 'noorwachid', host = 'someserver.com', path = '/home/noorwachid/www/personalproject' }
-
To sync up (or upload) a file type
:RsyncUp
-
Create a config file in the root of your project
./.nvim/rsync.lua
return { default = 'development', table = { development = { username = 'noorwachid', host = 'sandbox.corporate.com', path = '/home/noorwachid/sandbox/product' }, production = { username = 'www-data', host = 'product.com', path = '/var/www/html' }, } }
-
To sync up (or upload) a file type
:RsyncUp
to use thedefault
target -
To sync up (or upload) a file type
:RsyncUp production
to use specific target