I'm using lsp-mode as lsp client and gopls as lsp backend in order to lookup function and variable definitions in go projects.
On a given large repository (kubernetes) that I recently wiped and cloned again, I see that, when I want to lookup a definition (lsp-find-definition
), emacs will stall for a few seconds and then fail:
"Timeout while waiting for response. Method: textDocument/references" –
Is there anything I can do to fix this?
Notice that all the definition lookups worked fine before I deleted the project folder and re-crated it...