ray-x / lsp_signature.nvim

LSP signature hint as you type
Apache License 2.0
2.01k stars 56 forks source link

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

Open geril2207 opened 1 year ago

geril2207 commented 1 year ago

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

ray-x commented 1 year ago

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?

geril2207 commented 1 year ago

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.