mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -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."
|
||||
(interactive
|
||||
(list (thing-at-point 'symbol t)
|
||||
(list (xref-backend-identifier-at-point (xref-find-backend))
|
||||
current-prefix-arg))
|
||||
(cond ((null identifier)
|
||||
(user-error "Nothing under point"))
|
||||
|
Reference in New Issue
Block a user