-
Notifications
You must be signed in to change notification settings - Fork 200
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
Implement per-server variable bindings #152
Comments
This should probably be a generic function on the server right?
sounds right, but what to do when eglot disconnects? Restore the bindings as they were before connection? |
Hmm, what's wrong with having an alist, like you suggested? I think it would be more user friendly.
I thought we could just set them in |
The generic function would return an alist.
Good idea, this seems a reasonable cop-out away from the problem :-) |
Perhaps I didn't explain myself very well. |
A generic function makes sense, I'm just in favor of a variable because, at least for me, they're easier to use. With a generic function I actually have to edit my init file, with a variable I can just edit dir-locals. |
But are these variables intended to be set by the user regularly per-project? Or are they properties/quirks of the servers themselves that we sometimes handle in eglot.el? |
Oh, I thought they were meant to be set by users (your suggested variable name implies it, I think). If it's supposed to be set internally by us, then |
Yes, if I thought that earlier, then I was wrong, I think.
Sure, but all of this is a way for us to escape non-conforming servers, which is something we live with. Eventually, as servers become more and more conforming (yeah right), these things would fade... |
Per #125 (comment)
The idea is to have a way to automatically bind some buffer-local variables for chosen servers.
For example,
eglot-move-to-column-function
needs to be set for specific servers buffer-locally.The text was updated successfully, but these errors were encountered: