]> Sergey Matveev's repositories - dotfiles.git/blobdiff - vim/.vim/plugin/lsp.vim
Proper quotes
[dotfiles.git] / vim / .vim / plugin / lsp.vim
index 1adfbe5a9448533f7fcc4571e71b32ea57ecc26f..6820777cf7e588361273cc8c9601bce84eb81952 100644 (file)
@@ -1,7 +1,7 @@
 vim9script
 
 # go get golang.org/x/tools/gopls@latest
-# pip install 'python-language-server[all]'
+# pip install "python-language-server[all]"
 
 var lspServers: list<dict<any>>
 
@@ -12,10 +12,21 @@ for d in [
         args: ["--log=error"],
     },
     {
-        filetype: ["go"],
+        filetype: ["go", "gomod"],
         path: "gopls",
         syncInit: true,
     },
+    {
+        filetype: ["python"],
+        path: "pyls",
+        syncInit: true,
+        workspaceConfig: {pyls: {
+            configurationSources: ["flake8"],
+            plugins: {
+                mccabe: {enabled: false},
+            },
+        }},
+    },
 ]
     if executable(d["path"])
         add(lspServers, d)