diff options
author | lonkaars <l.leblansch@gmail.com> | 2021-01-30 09:39:16 +0100 |
---|---|---|
committer | lonkaars <l.leblansch@gmail.com> | 2021-01-30 09:39:16 +0100 |
commit | e3b89cbf04be06c28e2917da3dfab170f33961dc (patch) | |
tree | 95e5ce5eb67e12536aa411ffa728db2b0d05fd8c /.config/nvim/autoload/plug.vim | |
parent | da6b07e83ecfe4bed90df07d6f4850e613ff0910 (diff) |
vimrc + vim-plug update
Diffstat (limited to '.config/nvim/autoload/plug.vim')
-rw-r--r-- | .config/nvim/autoload/plug.vim | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/.config/nvim/autoload/plug.vim b/.config/nvim/autoload/plug.vim index 9262208..9c296ac 100644 --- a/.config/nvim/autoload/plug.vim +++ b/.config/nvim/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 @@ -1530,7 +1532,7 @@ while 1 " Without TCO, Vim stack is bound to explode let [error, _] = s:git_validate(spec, 0) if empty(error) if pull - let cmd = ['git', 'fetch'] + let cmd = s:git_version_requirement(2) ? ['git', '-c', 'credential.helper=', 'fetch'] : ['git', 'fetch'] if has_tag && !empty(globpath(spec.dir, '.git/shallow')) call extend(cmd, ['--depth', '99999999']) endif |