kosayoda / nvim-lightbulb

VSCode 💡 for neovim's built-in LSP.
MIT License
783 stars 27 forks source link

Async update? #61

Open naquad opened 5 months ago

naquad commented 5 months ago

Hello,

I've got a mid-sized project (~25k files) with a pretty slow language server (PHPActor). The issue occurs when the CursorHold[I] happens: NeoVIM freezes until the server responds.

Would it be possible to perform the LSP request asynchronously so that it would not affect other actions?

crisidev commented 3 months ago

One mitigation could be to increase the time when the cursor hold will be triggered for this plugin.

autocmd = {
      ...
      -- See |updatetime|.
      -- Set to a negative value to avoid setting the updatetime.
      updatetime = 1500,
}

The default is 200ms.