Skip to content

How to call eglot-reconnect in a function? #1223

Answered by fast-90
fast-90 asked this question in Q&A
Discussion options

You must be logged in to vote

Actually, after a few extra hours of trying different things I found the following solution working:

(use-package pyvenv
  :straight t
  :hook (pyvenv-post-activate-hooks . (lambda() (call-interactively 'eglot-reconnect))))

Although I am intrigued by your comment regarding use-package. Could you elaborate your thoughts?

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@fast-90
Comment options

Answer selected by fast-90
Comment options

You must be logged in to vote
1 reply
@fast-90
Comment options

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