Microsoft Python LS => Pyright

This commit is contained in:
Radon Rosborough 2022-10-10 09:51:06 -07:00
parent bcc144ea08
commit 60058f4acf
1 changed files with 3 additions and 14 deletions

View File

@ -41,15 +41,8 @@ install:
- python3
- python3-pip
- black
manual: |
install -d "${pkg}/opt/mspyls"
install -d "${pkg}/usr/local/bin"
url="$(curl -fsSL "https://pvsc.blob.core.windows.net/python-language-server-stable?restype=container&comp=list&prefix=Python-Language-Server-linux-x64" | grep -Eo 'https://[^<]+\.nupkg' | tail -n1)"
wget "${url}"
unzip -d "${pkg}/opt/mspyls" Python-Language-Server-linux-x64.*.nupkg
chmod +x "${pkg}/opt/mspyls/Microsoft.Python.LanguageServer"
ln -s "/opt/mspyls/Microsoft.Python.LanguageServer" "${pkg}/usr/local/bin/Microsoft.Python.LanguageServer"
npm:
- pyright
repl: |
python3 -u
@ -83,11 +76,7 @@ pkg:
lsp:
start: |
Microsoft.Python.LanguageServer
init:
interpreter:
properties:
InterpreterPath: /usr/bin/python3
pyright-langserver --stdio
code: "import func"
item: "functools"