On Sun, Mar 5, 2023, 20:10 João Távora <joaotavora@gmail.com> wrote:
On Sun, Mar 5, 2023, 10:22 Helmut Eller <eller.helmut@gmail.com> wrote:.

I think that it's a bad idea to add language specific commands to xref.
The next thing is that we have commands for jump-to-variable and
jump-to-constant and jump-to-macro ...

It would be better to leave those commands in the language specific mode
with the C-c prefix.

I agree, but the xref backend responsible for answering the request can still be Eglot's. 

To clarify, i think the thin commands and the keybinds should be in the major modes, but these commands should be thin and use xref as a library. And the backend should be Eglot's,  if it happens to be managing the buffer via LSP, else out can be whatever the major modes sets up.

João

Josh