From: Ruben Beltran del Rio Date: Fri, 15 Apr 2022 09:30:53 +0000 (+0200) Subject: Update plug X-Git-Url: https://git.r.bdr.sh/rbdr/dotfiles/commitdiff_plain/f60007b397ce9ad5c2b77392deaf0a4c12f72b3e Update plug --- diff --git a/vim/autoload/plug.vim b/vim/autoload/plug.vim index 6a958cb..ad95041 100644 --- a/vim/autoload/plug.vim +++ b/vim/autoload/plug.vim @@ -405,7 +405,7 @@ function! plug#end() for [map, names] in items(lod.map) for [mode, map_prefix, key_prefix] in - \ [['i', '', ''], ['n', '', ''], ['v', '', 'gv'], ['o', '', '']] + \ [['i', '', ''], ['n', '', ''], ['v', '', 'gv'], ['o', '', '']] execute printf( \ '%snoremap %s %s:call lod_map(%s, %s, %s, "%s")', \ mode, map, map_prefix, string(map), string(names), mode != 'i', key_prefix) @@ -1208,7 +1208,8 @@ function! s:update_impl(pull, force, args) abort normal! 2G silent! redraw - let s:clone_opt = [] + " Set remote name, overriding a possible user git config's clone.defaultRemoteName + let s:clone_opt = ['--origin', 'origin'] if get(g:, 'plug_shallow', 1) call extend(s:clone_opt, ['--depth', '1']) if s:git_version_requirement(1, 7, 10)