diff --git a/langs/python.yaml b/langs/python.yaml index a024b06..4f2989c 100644 --- a/langs/python.yaml +++ b/langs/python.yaml @@ -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"