neoclide / coc.nvim

Nodejs extension host for vim & neovim, load extensions like VSCode and host language servers.
Other
24.15k stars 953 forks source link

Multiple vim tasks invoke mutiple clangd processes with coc-clangd plugin #5065

Closed Gwan-He closed 6 days ago

Gwan-He commented 6 days ago

Hi, I use vim with coc.nvim and with coc-clangd plugin installed, when I start multiple vim tasks, each vim process seems to invoke one node process and one clangd process, just like below screenshot:

image

these processes occupy quit a lot cpu, is there any way to improve such circumstance?

fannheyward commented 6 days ago

each vim process seems to invoke one node process and one clangd process

It's expected, and no sharing way for LSP client.

Gwan-He commented 2 days ago

each vim process seems to invoke one node process and one clangd process

It's expected, and no sharing way for LSP client.

If so, is there any way to limit the cpu usage of clangd processes through coc config?