nvimdev / lspsaga.nvim

improve neovim lsp experience
MIT License
3.44k stars 286 forks source link

fix(hover): cancel prev lsp hover request on new requests instead of waiting addresses #1417 #1437

Closed myypo closed 4 months ago

myypo commented 4 months ago

Now instead of waiting for previous request to complete do a cleanup by calling the cancel function returned by vim.lsp.buf_request and proceed to create a new lsp request. Seems to help with both regular hover windows and ++keep windows.

Long-term tho it is probably better to use vim.lsp.buf_request_all instead of vim.lsp.buf_request as by this nvim issue.