-
-
Notifications
You must be signed in to change notification settings - Fork 648
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
Could CIDER provide an xref backend instead of hijacking M-.
and M-,
?
#2831
Comments
Yeah, we can certainly do this. CIDER predates the existence of |
@stig Btw, are there some packages implementing this outside of Emacs that I can take a look at? Or any documentation on the subject? |
I didn't find any documentation, but I appear to have three packages that implements it, according to documentation for
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contribution and understanding! |
I've started work on this a while ago, but it turned out to be more involved than I anticipated and I've paused it for now. I plan to revisit this down the road, but anyone's welcome to beat me to it. :-) |
Here's some useful reference pythonic-emacs/anaconda-mode@39b1cf8 |
@bbatsov Any news for this? |
No progress. I've been pretty busy lately. |
@bbatsov I would like to try submit a PR to fix this, maybe in two/three weeks. |
This isn't working for me, for some reason. I keep getting the prompt I'm going to try debugging it, but I'm not really much of an elisp guru /shrug Edit:
I'm temporarily fixing this in my init.el by just getting rid of the
which is definitely not a good thing, I'm sure, but it's working for me, for now /shrug. My guess is that Emacs is working through the list, finds Edit2: Hook ended up not really working very well, seems like upgrading to emacs 27.2 (using the ppa) has fixed it, though. |
Is your feature request related to a problem? Please describe.
I'm frustrated with the way CIDER hijacks
M-.
in all clojure-mode buffers, even for projects where you don't connect to CIDER. I don't always want to connect to CIDER to navigate projects efficiently.Describe the solution you'd like
I would love for CIDER to provide an xref backend instead of hijacking
M-.
, similar to howclojure-lsp
does.My hope is that this would mean xref would present results both from CIDER and
clojure-lsp
, and other backends.Describe alternatives you've considered
A simpler (though less ideal) fix would perhaps be to fall back to
xref-find-definitions
if there's no CIDER connection for the project.Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: