Skip to content

When / how to start the lsp server #3760

Answered by kiennq
pedz asked this question in Q&A
Discussion options

You must be logged in to vote

You can use (lsp-deferred) which will run (lsp) when the buffer becomes visible. Also, call them on the ruby-mode-hook. That would make sure the lsp will be started every time you open a new Ruby file.
And you don't have to worry about calling lsp on every new source file open, it would not have much negative impact on those

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by pedz
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