diff options
Diffstat (limited to 'installer/install-vim-language-server.sh')
-rwxr-xr-x | installer/install-vim-language-server.sh | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/installer/install-vim-language-server.sh b/installer/install-vim-language-server.sh index e18c2d7..0f63101 100755 --- a/installer/install-vim-language-server.sh +++ b/installer/install-vim-language-server.sh @@ -1,3 +1,20 @@ #!/bin/sh -yarn global add vim-language-server +set -e + +cd $(dirname $0) +[ -d ../servers/vim-language-server ] && rm -rf ../servers/vim-language-server +mkdir ../servers/vim-language-server +cd ../servers/vim-language-server +git clone https://github.com/iamcco/vim-language-server . +yarn +yarn build + +cat <<EOF > vim-language-server +#!/bin/sh + +DIR=\$(cd \$(dirname \$0); pwd) +node bin/index.js --stdio +EOF + +chmod +x vim-language-server |