Skip to content

Commit

Permalink
readd macos support
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerLeonhardt committed Apr 17, 2019
1 parent 092158d commit 7a433ab
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion autoload/coc/pses.vim
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
let s:root = expand('<sfile>: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

0 comments on commit 7a433ab

Please sign in to comment.