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:
parent
ff97806e50
commit
eeedef0e9e
2
plug.vim
2
plug.vim
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user