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", "ch", "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 set omnifunc=g:LspOmniFunc
45 autocmd VimEnter * call LspAddServer(lspServers)
46 autocmd VimEnter * call LspOptionsSet(lspOpts)
47 autocmd CursorMoved * silent! LspDiagCurrent
48 nmap gd :LspGotoDefinition<CR>
49 nmap <C-W>gd :vert LspGotoDefinition<CR>
51 nmap [l :LspDiagPrev<CR>
52 nmap ]l :LspDiagNext<CR>