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

use rust-analyzer with singature will make input delay

Open BingCoke opened this issue 2 years ago • 6 comments

lsp_signature will make input delay such as Box::new( ) when i input a variable , I nedd wait for a while before there is a response. here is my config

local cfg = {
  floating_window = false,
  bind = false,
  wrap = true,
  toggle_key = "<c-p>",
} -- add your config here
require("lsp_signature").setup(cfg)

BingCoke avatar Jun 02 '23 05:06 BingCoke

Same with tsserver. config:

require('lsp_signature').setup({
  floating_window = false,
  doc_lines = 0,
})

basilgood avatar Jun 05 '23 10:06 basilgood

I experienced the same issue. NVIM would chuckle on any smaller changes (i.e., changing true to false) in random situations. My first suspects where the LSP (TSServer), or the completion library (nvim-cmp).

I used both Helix editor & vanilla NVIM (w/ just nvim-cmp) and the issue didn't occur. I checked also how COQ will behave, the same problem. Removing ray-x/lsp_signature.nvim resolved the issue.

To folks using nvim-cmp - you can use hrsh7th/cmp-nvim-lsp-signature-help as an alternative.

radmen avatar Jun 06 '23 07:06 radmen

https://github.com/hrsh7th/nvim-cmp/commit/6f118169af14c0f92d3f6062cd6f6b8b12361b3a fixed today

zaqxsw-dev avatar Jun 09 '23 12:06 zaqxsw-dev

It's not resolved yet. It's better but not resolved. The recording cannot reproduce the true delay. If you type faster ccc...

https://github.com/ray-x/lsp_signature.nvim/assets/16057481/f9a404fb-facf-4bf1-a1a9-000fcc7fef91

basilgood avatar Jun 10 '23 06:06 basilgood