]> Sergey Matveev's repositories - dotfiles.git/blob - vim/.vim/ftplugin/python/lsp.vim
7cbc696609e4b9441539f0f07927821ac682102d
[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     \        "plugins": {
10     \            "mccabe": {"enabled": v:false},
11     \        },
12     \    }},
13     \})
14 endif