]> Sergey Matveev's repositories - dotfiles.git/blobdiff - vim/.vim/ftplugin/python/lsp.vim
pylsp should use flake8's configuration
[dotfiles.git] / vim / .vim / ftplugin / python / lsp.vim
index 4c04cd29a92088617fa51c8e2bbb97e76212e54e..394f56a214b031cacb54725603a700f2dca39581 100644 (file)
@@ -1,8 +1,11 @@
 if executable("pyls")
-    " pip install python-language-server
+    " pip install 'python-language-server[all]'
     au User lsp_setup call lsp#register_server({
     \    "name": "pyls",
     \    "cmd": {server_info->["pyls"]},
-    \    "whitelist": ["python"],
+    \    "allowlist": ["python"],
+    \    "workspace_config": {"pyls": {
+    \        "configurationSources": ["flake8"],
+    \    }},
     \})
 endif