I was trying to get clojure-lsp set up for a coworker and we were getting errors saying that the server doesn't support textDocument/typeDefinition
when running xref-find-references
. I can see that clojure-lsp doesn't support that capability, but it is odd that we are getting that error because it works without a hitch on my end. Any ideas about where our setups might be diverging?
Hum good question, I'm not sure why xref-find-references
is calling typeDefinition
instead of lsp-find-references
:thinking_face:
yeah, my nose tells me that there is probably something misconfigured in his spacemacs config, or in the lsp layer itself. Just wanted to check if this was a familiar bug or not before sinking more time in it
Probably the folks from lsp-mode
will know why this happens, I suggest you ask https://gitter.im/emacs-lsp/lsp-mode.
thanks eric! will let you know if it ends up being something actionable
:nice:
one thing that I did notice was that the Spacemacs Clojure layer doesn't have a variable to toggle lsp support or not. I am going to try to take some time to submit a PR for that this weekend. As far as I can think, the toggle would basically just set the refactor bindings to use lsp's refactors (instead of clj-refactor) when applicable