idris-hackers / idris-mode

Idris syntax highlighting, compiler-supported editing, interactive REPL and more things for Emacs.
GNU General Public License v3.0
267 stars 70 forks source link

Xref backend for Idris 2 #604

Closed keram closed 1 year ago

keram commented 1 year ago

Add Xref backend for Idris

Resolves https://github.com/idris-hackers/idris-mode/issues/593 (jump to definition feature)

This PR is based on top of commits from https://github.com/idris-hackers/idris-mode/pull/603 and they are split for ease of code review.

Only Idris2 is supported as Idris1 does not implement :name-at command.

Demo:

https://user-images.githubusercontent.com/578608/210185092-fd8a2dd5-4dcf-453a-b9ce-f311b575f75c.mp4