lsp icon indicating copy to clipboard operation
lsp copied to clipboard

Completion performance is slow on large projects

Open jclsn opened this issue 8 months ago • 2 comments

I am currently working on a large C++ projects and sometimes the completion menu blocks vim completely for a few seconds. I have also tried coc.nvim on the same project with no issues, so it is definitely not clangd, which is causing this.

I am assuming the client is requesting too many things from the server somehow, which then sends back a large message. Any advice on how to improve completion speed?

Things I've tried:

  • turning off useBufferCompletion
  • setting bufferCompletionTimeout: 10

Not sure what else to do!

jclsn avatar Apr 25 '25 05:04 jclsn

It seems there are changes needed in Vim before yegappan can make the plugin async. He started on something here: https://github.com/yegappan/vim/tree/lsp-async

briancarbone avatar Apr 25 '25 15:04 briancarbone

Good to know! Probably not easy to implement that!

jclsn avatar Apr 25 '25 17:04 jclsn