There's a bug in eglot.el where initialisation options aren't handled, so I can't set the initialisation parameters for a given server; that is causing me problems because the language server I'm using is running out of memory because I have too many files open.
While I wait for a fix, I would like to be able to around hack the problem by advising eglot-initialization-options
, which is defined as (body elided), such that I return a fixed string if some predicate holds on the server.
(cl-defgeneric eglot-initialization-options (server)
"JSON object to send under `initializationOptions'."
(:method (s)
...