blob: f771f31c89a6c46451b428c8728a7d2eba0e55db (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#!/bin/bash
set -e
# REF https://github.com/neovim/nvim-lsp/blob/master/lua/nvim_lsp/pyls_ms.lua
curl -L https://dot.net/v1/dotnet-install.sh | bash -s -- -i "./.dotnet"
os=$(uname -s | tr "[:upper:]" "[:lower:]")
case $os in
linux)
system="linux"
;;
darwin)
system="osx"
;;
*) ;;
esac
version="0.5.10"
url="https://pvsc.azureedge.net/python-language-server-stable/Python-Language-Server-${system}-x64.${version}.nupkg"
nupkg="./pyls.nupkg"
curl -L "$url" -o "$nupkg"
unzip "$nupkg"
cat <<EOF >pyls-ms
#!/bin/sh
DIR=\$(cd \$(dirname \$0); pwd)
\$DIR/.dotnet/dotnet exec \$DIR/Microsoft.Python.LanguageServer.dll
EOF
chmod +x pyls-ms
|