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