From eeedef0e9edcc20d1563f48f3af694cd8f1e0ac5 Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Sat, 28 Sep 2019 21:15:50 -0400 Subject: [PATCH] Detect WSL (Neovim only) Works since Neovim v0.3.0 (https://github.com/neovim/neovim/commit/5d2dd2ebe28c31f223d77355a8f9d40adfb41c82) Related: https://github.com/junegunn/vim-plug/issues/821 --- plug.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plug.vim b/plug.vim index bc3706c..00cf6e7 100644 --- a/plug.vim +++ b/plug.vim @@ -1028,7 +1028,7 @@ function! s:update_impl(pull, force, args) abort let s:clone_opt = get(g:, 'plug_shallow', 1) ? \ '--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' endif