From ca44f39a27073c708857d15d363fe880165028e8 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Tue, 30 Nov 2021 21:46:50 +0100 Subject: Improve error handling, add command arguments and add sync command --- plugin/rclone.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plugin') diff --git a/plugin/rclone.vim b/plugin/rclone.vim index b3a4623..3173b6a 100644 --- a/plugin/rclone.vim +++ b/plugin/rclone.vim @@ -5,7 +5,8 @@ endif let s:old_cpo = &cpo set cpo&vim -command! RcloneCopy lua require('rclone').copy() +command! -nargs=? RcloneCopy lua require('rclone').copy() +command! -nargs=? RcloneSync lua require('rclone').sync() let &cpo = s:old_cpo unlet s:old_cpo -- cgit v1.2.3