lsp_signature.nvim
lsp_signature.nvim copied to clipboard
Input lag(nvim freeze for one second because of nvim-cmp)
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.
https://github.com/ray-x/lsp_signature.nvim/assets/62308020/a4f7740a-1ca4-41c0-b353-fddbc56a895f
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?
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.