]> Sergey Matveev's repositories - dotfiles.git/blob - vim/.vim/ftplugin/python/lsp.vim
394f56a214b031cacb54725603a700f2dca39581
[dotfiles.git] / vim / .vim / ftplugin / python / lsp.vim
1 if executable("pyls")
2     " pip install 'python-language-server[all]'
3     au User lsp_setup call lsp#register_server({
4     \    "name": "pyls",
5     \    "cmd": {server_info->["pyls"]},
6     \    "allowlist": ["python"],
7     \    "workspace_config": {"pyls": {
8     \        "configurationSources": ["flake8"],
9     \    }},
10     \})
11 endif