Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Async update? #61

Open
naquad opened this issue Mar 29, 2024 · 2 comments
Open

Async update? #61

naquad opened this issue Mar 29, 2024 · 2 comments

Comments

@naquad
Copy link

naquad commented Mar 29, 2024

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
Copy link
Contributor

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.

@kosayoda
Copy link
Owner

The LSP request is performed asynchronously, so any slowdown is probably in some other part of the code. I would appreciate it if there is a reproducible example..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants