One language server instance per several major modes #681
Replies: 2 comments 26 replies
-
[ I converted this to a discussion. Please don't disregard the issue-creating template ]
Yes, it is a feasible and interesting feature request. On a first sight, it is not extremely hard to implement, it's a question of:
Means that Maybe we should use a different Elisp variable for 2, , though. |
Beta Was this translation helpful? Give feedback.
-
Couldn't Eglot just group by something like |
Beta Was this translation helpful? Give feedback.
-
There are language servers that are able to handle a mix of file types (major modes).
vls
(vue language server) is such a server.For example, a typical "vue" project is a mix of:
Within a given project, all these modes should be handled by a single instance of the language server (
vls
).However, eglot starts a fresh server instance for each of distinct major modes.
What I want is: if a major mode of a future file buffer matches the mode from a list, then inside current project eglot should reuse an already running server instead of starting new server.
Is this possible? If not, would it be a feasible feature request?
Beta Was this translation helpful? Give feedback.
All reactions