mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
feature/lookup: fix +lookup/definition not fetching the correct identifier
Some xref backends have specialized thing-at-point implementations (such as haskell's dante's xref backend), this fix uses them to fetch the identifier at point.
This commit is contained in:
@ -59,7 +59,7 @@ to find it:
|
|||||||
|
|
||||||
Failing all that, it will give up with an error."
|
Failing all that, it will give up with an error."
|
||||||
(interactive
|
(interactive
|
||||||
(list (thing-at-point 'symbol t)
|
(list (xref-backend-identifier-at-point (xref-find-backend))
|
||||||
current-prefix-arg))
|
current-prefix-arg))
|
||||||
(cond ((null identifier)
|
(cond ((null identifier)
|
||||||
(user-error "Nothing under point"))
|
(user-error "Nothing under point"))
|
||||||
|
Reference in New Issue
Block a user