3 # go get golang.org/x/tools/gopls@latest
4 # pip install 'python-language-server[all]'
6 var lspServers: list<dict<any>>
10 filetype: ["c", "cpp"],
12 args: ["--log=error"],
15 filetype: ["go", "gomod"],
23 workspaceConfig: {pyls: {
24 configurationSources: ["flake8"],
26 mccabe: {enabled: false},
31 if executable(d["path"])
37 ignoreMissingServer: true,
40 autoPopulateDiags: true,
44 autocmd VimEnter * call LspAddServer(lspServers)
45 autocmd VimEnter * call LspOptionsSet(lspOpts)
46 autocmd CursorMoved * silent! LspDiagCurrent
47 nmap gd :LspGotoDefinition<CR>
48 nmap <C-W>gd :vert LspGotoDefinition<CR>