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"],
20 if executable(d["path"])
26 ignoreMissingServer: true,
29 autoPopulateDiags: true,
33 autocmd VimEnter * call LspAddServer(lspServers)
34 autocmd VimEnter * call LspOptionsSet(lspOpts)
35 autocmd CursorMoved * silent! LspDiagCurrent
36 nmap gd :LspGotoDefinition<CR>
37 nmap <C-W>gd :vert LspGotoDefinition<CR>