Skip to content

What's lsp-deferred? #3360

Answered by kiennq
gzagatti asked this question in Q&A
Feb 22, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

What do you mean by defer the server startup until the buffer is visible? What happens when it is not deferred?

If it's not deferred, the server starts immediately when the lsp command is encountered.
That can take a very long time when you open several buffers at one and have lsp-mode starts in all of them. You can even feel like Emacs is hanging.

An example is when you restore from desktop-save-mode and have a dozen buffers restored, you may not want to have lsp-mode running in all of the buffers immediately, but only when they're visible in your view.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@gzagatti
Comment options

Answer selected by yyoncho
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants