From 7a433ab012c8de6f3c162b385250c1ff292a9b4a Mon Sep 17 00:00:00 2001 From: Tyler Leonhardt Date: Wed, 17 Apr 2019 09:15:03 -0700 Subject: [PATCH] readd macos support --- autoload/coc/pses.vim | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/autoload/coc/pses.vim b/autoload/coc/pses.vim index 1f28029..09d68d3 100644 --- a/autoload/coc/pses.vim +++ b/autoload/coc/pses.vim @@ -1,12 +1,18 @@ let s:root = expand(':h:h:h') let s:is_win = has('win32') || has('win64') +let s:is_mac = !s:is_windows && !s:is_cygwin + \ && (has('mac') || has('macunix') || has('gui_macvim') || + \ (!isdirectory('/proc') && executable('sw_vers'))) let s:is_vim = !has('nvim') let s:install_script = s:root.'/'.(s:is_win ? 'install.cmd' : 'install.ps1') +if(s:is_mac) + let s:install_script = 'pwsh '.s:install_script +endif + function! coc#pses#install() let cwd = getcwd() exe 'lcd '.s:root exe '!'.s:install_script exe 'lcd '.cwd endfunction -