Skip to content

Commit

Permalink
xplat installer
Browse files Browse the repository at this point in the history
  • Loading branch information
Yatao Li committed Apr 17, 2019
1 parent 0904292 commit 5f07115
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
12 changes: 12 additions & 0 deletions autoload/coc/pses.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
let s:root = expand('<sfile>:h:h:h')
let s:is_win = has('win32') || has('win64')
let s:is_vim = !has('nvim')
let s:install_script = s:root.'/'.(s:is_win ? 'install.cmd' : 'install.ps1')

function! coc#pses#install()
let cwd = getcwd()
exe 'lcd '.s:root
exe '!'.s:install_script
exe 'lcd '.cwd
endfunction

4 changes: 0 additions & 4 deletions plugin/coc-pses.vim
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@ function! s:PSESSetup ()
\)
endfunction

function! coc#pses#install()
execute "!../install.ps1"
endfunction

" Set the file type to ps1 for ps1, psm1, and psd1
" 'ps1' is what vim-polyglot uses for styling
if(&filetype == "")
Expand Down

0 comments on commit 5f07115

Please sign in to comment.