]> Sergey Matveev's repositories - dotfiles.git/blobdiff - vim/.vim/ftplugin/python/lsp.vim
Do not use vim-lsp-settings for simplicity
[dotfiles.git] / vim / .vim / ftplugin / python / lsp.vim
diff --git a/vim/.vim/ftplugin/python/lsp.vim b/vim/.vim/ftplugin/python/lsp.vim
new file mode 100644 (file)
index 0000000..4c04cd2
--- /dev/null
@@ -0,0 +1,8 @@
+if executable("pyls")
+    " pip install python-language-server
+    au User lsp_setup call lsp#register_server({
+    \    "name": "pyls",
+    \    "cmd": {server_info->["pyls"]},
+    \    "whitelist": ["python"],
+    \})
+endif