Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
Ryan Olson edited this pageFeb 19, 2021 ·7 revisions

A Python 2.7 and 3.4+ implementation of the Language Server Protocol.

Installing server

pip install python-language-server

Once thepython-language-server is installed, you can register thepython-language-server in your .vimrc

Registering in .vimrc

ifexecutable('pyls')auUserlsp_setupcalllsp#register_server({\'name':'pyls',\'cmd': {server_info->['pyls']},\'whitelist': ['python'],\})endif

Workspace Configuration

python-language-server has several settings that can be tweaked through the workspace configuration. For example, enablingpydocstyle (which is disabled by default):

ifexecutable('pyls')auUserlsp_setupcalllsp#register_server({\'name':'pyls',\'cmd': {server_info->['pyls']},\'whitelist': ['python'],\'workspace_config': {'pyls': {'plugins': {'pydocstyle': {'enabled':v:true}}}}\})endif

The full set of options that can be manipulated can be found inpackage.json.

Clone this wiki locally

[8]ページ先頭

©2009-2025 Movatter.jp