My eglot just stops working properly from time to time. Every once in a while, it’ll get “out of sync” from the buffer. i.e. even after I correct the syntax error it reports, it still sends the old code to LSP, and therefore keeps reporting the fixed errors.

`elgot-reconnect` fixes it, but it’s really not a solution to call `eglot-reconnect` every 10 minutes.

  • jvillasante@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    If you are using corfu, I had a similar issue and the fix is below:

    (advice-add 'eglot-completion-at-point :around #'cape-wrap-buster)
    (advice-add 'eglot-completion-at-point :around #'cape-wrap-noninterruptible)