Skip to content

Commit b13fca6

Browse files
authored
Update README.md (#1050)
replace pyls with pylsp
1 parent 6571747 commit b13fca6

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

README.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -191,16 +191,14 @@ Use of a python `virtualenv` or a conda env is also recommended.
191191

192192
Server configurations can be edited using the Advanced Settings editor in JupyterLab (_Settings > Advanced Settings Editor_). For settings specific to each server, please see the [table of language servers][language-servers]. Example settings might include:
193193

194-
> Note: for the new (currently recommended) python-lsp-server replace `pyls` occurrences with `pylsp`
195-
196194
```json
197195
{
198196
"language_servers": {
199-
"pyls": {
197+
"pylsp": {
200198
"serverSettings": {
201-
"pyls.plugins.pydocstyle.enabled": true,
202-
"pyls.plugins.pyflakes.enabled": false,
203-
"pyls.plugins.flake8.enabled": true
199+
"pylsp.plugins.pydocstyle.enabled": true,
200+
"pylsp.plugins.pyflakes.enabled": false,
201+
"pylsp.plugins.flake8.enabled": true
204202
}
205203
},
206204
"r-languageserver": {
@@ -218,9 +216,9 @@ The `serverSettings` key specifies the configurations sent to the language serve
218216
```json
219217
{
220218
"language_servers": {
221-
"pyls": {
219+
"pylsp": {
222220
"serverSettings": {
223-
"pyls": {
221+
"pylsp": {
224222
"plugins": {
225223
"pydocstyle": {
226224
"enabled": true
@@ -241,7 +239,7 @@ The `serverSettings` key specifies the configurations sent to the language serve
241239

242240
#### Other configuration methods
243241

244-
Some language servers, such as `pyls`, provide other configuration methods _in addition_ to language-server configuration messages (accessed using the Advanced Settings Editor). For example, `pyls` allows users to configure the server using a local configuration file. You can change the inspection/diagnostics for server plugins like `pycodestyle` there.
242+
Some language servers, such as `pylsp`, provide other configuration methods _in addition_ to language-server configuration messages (accessed using the Advanced Settings Editor). For example, `pylsp` allows users to configure the server using a local configuration file. You can change the inspection/diagnostics for server plugins like `pycodestyle` there.
245243

246244
The exact configuration details will vary between operating systems (please see the [configuration section of pycodestyle documentation](https://pycodestyle.readthedocs.io/en/latest/intro.html#configuration)), but as an example, on Linux you would simply need to create a file called `~/.config/pycodestyle`, which may look like that:
247245

0 commit comments

Comments
 (0)