add definition lookup handler to agda module

This commit is contained in:
bottomtype 2020-09-28 02:10:29 +02:00
parent 1456108d5b
commit 1fa4516cad

View file

@ -7,9 +7,10 @@
(unless (require 'agda2 nil t)
(message "Failed to find the `agda2' package")))
(map! :after agda2-mode
:map agda2-mode-map
(after! agda2-mode
(set-lookup-handlers! 'agda2-mode
:definition #'agda2-goto-definition-keyboard)
(map! :map agda2-mode-map
:localleader
"?" #'agda2-show-goals
"." #'agda2-goal-and-context-and-inferred
@ -36,4 +37,4 @@
"d" #'agda2-remove-annotations
"h" #'agda2-display-implicit-arguments
"q" #'agda2-quit
"r" #'agda2-restart))
"r" #'agda2-restart)))