lsp_signature.nvim icon indicating copy to clipboard operation
lsp_signature.nvim copied to clipboard

Input lag(nvim freeze for one second because of nvim-cmp)

Open geril2207 opened this issue 1 year ago • 2 comments

I think it's a problem with nvim-cmp, but maybe you could give some workaround. I faced with some freezes when inputing with lsp_signature, and make some measuring.

I guess that this helper function with calling cmp introduces this lags. image

https://github.com/ray-x/lsp_signature.nvim/assets/62308020/a4f7740a-1ca4-41c0-b353-fddbc56a895f

geril2207 avatar Jun 28 '23 08:06 geril2207

Sometime people may have too many cmp sources and slow down the cmp response time. Could you just enable LSP source in cmp and check if it still happens?

ray-x avatar Jun 29 '23 23:06 ray-x

No, with only one source nvim_lsp, it also freezes. I searched some issues and found that my is a duplicate of https://github.com/hrsh7th/nvim-cmp/issues/1613 and possible cause described in https://github.com/hrsh7th/nvim-cmp/issues/1613#issuecomment-1595216446.

geril2207 avatar Jun 30 '23 07:06 geril2207