ray-x / lsp_signature.nvim

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

use rust-analyzer with singature will make input delay #273

Open BingCoke opened 1 year ago

BingCoke commented 1 year ago

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)
basilgood commented 1 year ago

Same with tsserver. config:

require('lsp_signature').setup({
  floating_window = false,
  doc_lines = 0,
})
radmen commented 1 year ago

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.

zaqxsw-dev commented 1 year ago

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

basilgood commented 1 year ago

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