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

Eglot slow down polymode #39

Closed
TimotheeMathieu opened this issue Sep 6, 2023 · 1 comment
Closed

Eglot slow down polymode #39

TimotheeMathieu opened this issue Sep 6, 2023 · 1 comment

Comments

@TimotheeMathieu
Copy link

I use a polymode for python in latex mode however when eglot is also enabled every time I type something in a python chunk, it seems like a new eglot instance is launched and then typing becomes really slow (hangs for 2~3 seconds every time I type something).

This seems linked to #34
(setq polymode-lsp-integration nil) did not do anything. Nor did

  (add-to-list 'polymode-run-these-after-change-functions-in-other-buffers 'eglot--after-change)
  (add-to-list 'polymode-run-these-before-change-functions-in-other-buffers 'eglot--before-change)

suggested in here: joaotavora/eglot#1229

As a first approach, is there a way to disable eglot in inner chuncks? Maybe a hook with elglot-shutdown-all ? I tried to add (elglot-shutdown-all) to the init functions of the inner mode (e.g. python) but it did not work.

For now, I am launching polymode and then I am typing in M-x eglot-shutdown-all. It works but this is very non-optimal: not automatic and ideally I would prefer to keep eglot.

@TimotheeMathieu
Copy link
Author

"Solved" by switching to lsp-mode. Closing.

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

1 participant