Skip to content
Ryan Olson edited this page May 10, 2018 · 7 revisions

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

Installing server

pip install python-language-server

Using vim-lsp-python plugin

You can either register the python-language-server in your .vimrc yourself (as described below) or you can simply install the vim-lsp-python plugin, which will handle all of that for you.

Registering in .vimrc

if executable('pyls')
    au User lsp_setup call lsp#register_server({
        \ 'name': 'pyls',
        \ 'cmd': {server_info->['pyls']},
        \ 'whitelist': ['python'],
        \ })
endif