On Sun, Jul 14, 2024, 05:37 Eli Zaretskii wrote: > AFAIU, the OP tried to use the same LSP server for several languages, > or something like that. > Yes, but how? What are the major modes in question? What information was added to eglot-server-programs, if any? Are the two different files in question in the same project?The OP consistently conflates file type and major mode, which is not always true. A simple example of a LSP server that manages different files in (slightly) different major modes (as long as in the same project) is clangd. But there are a few others, I think. The docstring of eglot-server-programs should be studied. João >