From 9cc997e0b2734127a879b47ae6a67b69458d4814 Mon Sep 17 00:00:00 2001 From: Guillaume Algis Date: Sat, 4 Dec 2021 19:51:12 +0100 Subject: [PATCH] Migrate to python-lsp-server instead of python-language-server --- README.md | 6 +++--- Scripts/main.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index b24b4df..d757a59 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ ![](https://img.shields.io/badge/dynamic/json?color=brightgreen&label=Latest%20Version&query=%24.version&url=https%3A%2F%2Fraw.githubusercontent.com%2Fmmshivesh%2FPython-Nova.novaextension%2Fmaster%2Fextension.json) -Full featured Python Language Server Plugin (implements [PyLS](https://github.com/palantir/python-language-server)) for Nova, supports Jedi Autocomplete, PyFlakes, PyLint, YAPF, Rope, McCabe, PyDoc and CodeStyles. +Full featured Python Language Server plugin (implements [PyLS](https://github.com/python-lsp/python-lsp-server)) for Nova, supports Jedi Autocomplete, PyFlakes, PyLint, YAPF, Rope, McCabe, PyDoc and CodeStyles. Also supports all the Python Language Server plugins → `mypy`, `isort` and `black` @@ -21,10 +21,10 @@ Also supports all the Python Language Server plugins → `mypy`, `isort` and `bl ## Installation -1. Install dependencies using: +1. Install the LSP server and its dependencies using: ```bash -pip3 install 'python-language-server[all]' +pip3 install 'python-lsp-server[all]' ``` 2. Enable required modules from settings. diff --git a/Scripts/main.js b/Scripts/main.js index d32dbdd..1adea43 100644 --- a/Scripts/main.js +++ b/Scripts/main.js @@ -82,7 +82,7 @@ function getPreference(string, def, workspace=false) { function getSettings() { return { settings: { - "pyls": { + "pylsp": { "env": {}, "configurationSources": [ getPreference('pyls.configurationSources')