Detect WSL (Neovim only)

Works since Neovim v0.3.0 (5d2dd2ebe2)

Related: https://github.com/junegunn/vim-plug/issues/821
This commit is contained in:
Jan Edmund Lazo 2019-09-28 21:15:50 -04:00
parent ff97806e50
commit eeedef0e9e
No known key found for this signature in database
GPG Key ID: 64915E6E9F735B15

View File

@ -1028,7 +1028,7 @@ function! s:update_impl(pull, force, args) abort
let s:clone_opt = get(g:, 'plug_shallow', 1) ? let s:clone_opt = get(g:, 'plug_shallow', 1) ?
\ '--depth 1' . (s:git_version_requirement(1, 7, 10) ? ' --no-single-branch' : '') : '' \ '--depth 1' . (s:git_version_requirement(1, 7, 10) ? ' --no-single-branch' : '') : ''
if has('win32unix') if has('win32unix') || has('wsl')
let s:clone_opt .= ' -c core.eol=lf -c core.autocrlf=input' let s:clone_opt .= ' -c core.eol=lf -c core.autocrlf=input'
endif endif