diff options
author | Juan J. Martinez <jjm@usebox.net> | 2020-11-05 22:21:59 +0000 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2022-05-29 22:57:30 +0100 |
commit | 5913f887bf2b3f68e24873c06c355d83cc5e6750 (patch) | |
tree | 452ea30226804ebf3b4a53bd6fc32e51bdb7d24e | |
parent | fe49de7c3cc5e77a61111724ba60a1b0533985ac (diff) | |
download | dotnvim-5913f887bf2b3f68e24873c06c355d83cc5e6750.tar.gz dotnvim-5913f887bf2b3f68e24873c06c355d83cc5e6750.zip |
Updated vim-plugin
-rw-r--r-- | autoload/plug.vim | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/autoload/plug.vim b/autoload/plug.vim index 9262208..c1657f2 100644 --- a/autoload/plug.vim +++ b/autoload/plug.vim @@ -804,7 +804,7 @@ function! s:syntax() syn match plugNumber /[0-9]\+[0-9.]*/ contained syn match plugBracket /[[\]]/ contained syn match plugX /x/ contained - syn match plugDash /^-/ + syn match plugDash /^-\{1}\ / syn match plugPlus /^+/ syn match plugStar /^*/ syn match plugMessage /\(^- \)\@<=.*/ @@ -822,6 +822,7 @@ function! s:syntax() syn match plugError /^x.*/ syn region plugDeleted start=/^\~ .*/ end=/^\ze\S/ syn match plugH2 /^.*:\n-\+$/ + syn match plugH2 /^-\{2,}/ syn keyword Function PlugInstall PlugStatus PlugUpdate PlugClean hi def link plug1 Title hi def link plug2 Repeat @@ -1077,8 +1078,9 @@ function! s:checkout(spec) let sha = a:spec.commit let output = s:git_revision(a:spec.dir) if !empty(output) && !s:hash_match(sha, s:lines(output)[0]) + let credential_helper = s:git_version_requirement(2) ? '-c credential.helper= ' : '' let output = s:system( - \ 'git fetch --depth 999999 && git checkout '.plug#shellescape(sha).' --', a:spec.dir) + \ 'git '.credential_helper.'fetch --depth 999999 && git checkout '.plug#shellescape(sha).' --', a:spec.dir) endif return output endfunction |