Skip to content

Add Clojure repomap queries #4028

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

garrett-hopper
Copy link

Definitions: symbol name (without namespace) immediately following a def prefixed symbol
References: symbol name (without namespace) found anywhere

The definitions is pretty good; using def prefix is a very standard Clojure pattern even for 3rd party macros.

References is less than ideal, as it causes building the repo map to be a bit slow. The alternative would be to treat only symbols as the first entry in a list_lit as a reference. This works, but I've gotten better results allowing every symbol to contribute to the ranking of definitions.

Also added kebab-case as a condition to contribute a definition's ranking. It shouldn't impact most other languages, as - is typically unary operation and not allowed in idents.

@garrett-hopper garrett-hopper changed the title Add Clojure repomap queries (Close #3416) Add Clojure repomap queries (Fix #3416) May 15, 2025
@garrett-hopper garrett-hopper changed the title Add Clojure repomap queries (Fix #3416) Add Clojure repomap queries (close #3416) May 15, 2025
@garrett-hopper
Copy link
Author

Fixes #3416

@garrett-hopper garrett-hopper changed the title Add Clojure repomap queries (close #3416) Add Clojure repomap queries May 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants