@@ -217,19 +217,19 @@ vim-lsp doesn't ship with any language servers. The user is responsible for
217
217
configuring the language servers correctly.
218
218
219
219
Here is an example of configuring the python language server protocol based
220
- on pyls (https://github.com/palantir /python-language -server )
220
+ on pylsp (https://github.com/python-lsp /python-lsp -server )
221
221
222
222
1. Make sure the language server is available locally in the machine.
223
223
For python, pip package manager can be used to install the language server.
224
224
>
225
- pip install python-language -server
225
+ pip install python-lsp -server
226
226
227
227
2. Register the language server in your .vimrc
228
228
>
229
- if (executable('pyls '))
229
+ if (executable('pylsp '))
230
230
au User lsp_setup call lsp#register_server({
231
- \ 'name': 'pyls ',
232
- \ 'cmd': {server_info->['pyls ']},
231
+ \ 'name': 'pylsp ',
232
+ \ 'cmd': {server_info->['pylsp ']},
233
233
\ 'allowlist': ['python']
234
234
\ })
235
235
endif
@@ -1085,7 +1085,7 @@ Used to register the language server with vim-lsp. This method takes
1085
1085
one parameter which is a vim | dict | and is referred to as | vim-lsp-server_info |
1086
1086
1087
1087
Example: >
1088
- if (executable('pyls '))
1088
+ if (executable('pylsp '))
1089
1089
au User lsp_setup call lsp#register_server({
1090
1090
\ 'name': 'name-of-server',
1091
1091
\ 'cmd': {server_info->['server-exectuable']},
@@ -1137,7 +1137,7 @@ The vim |dict| containing information about the server.
1137
1137
can be determined statically and | vim-lsp-server_info | is not necessary.
1138
1138
1139
1139
Example: >
1140
- 'cmd': ['pyls ']
1140
+ 'cmd': ['pylsp ']
1141
1141
<
1142
1142
Function can be complex based on custom requirements.
1143
1143
For example:
@@ -1190,7 +1190,7 @@ The vim |dict| containing information about the server.
1190
1190
initialization. Configuration settings are language-server specific.
1191
1191
1192
1192
Example: >
1193
- 'workspace_config': {'pyls ': {'plugins': \
1193
+ 'workspace_config': {'pylsp ': {'plugins': \
1194
1194
{'pydocstyle': {'enabled': v:true}}}}
1195
1195
<
1196
1196
* languageId:
0 commit comments