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>>
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)