Created
September 26, 2020 17:59
-
-
Save sysbot/d352ae758bcb11cd23c70d374866e95d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(map! :map go-mode-map | |
:localleader | |
"a" #'go-tag-add | |
"d" #'go-tag-remove | |
"e" #'+go/play-buffer-or-region | |
"i" #'go-goto-imports ; Go to imports | |
(:prefix ("h" . "help") | |
"." #'godoc-at-point ; Lookup in godoc | |
"d" #'go-guru-describe ; Describe this | |
"v" #'go-guru-freevars ; List free variables | |
"i" #'go-guru-implements ; Implements relations for package types | |
"p" #'go-guru-peers ; List peers for channel | |
"P" #'go-guru-pointsto ; What does this point to | |
"r" #'go-guru-referrers ; List references to object | |
"e" #'go-guru-whicherrs ; Which errors | |
"w" #'go-guru-what ; What query | |
"c" #'go-guru-callers ; Show callers of this function | |
"C" #'go-guru-callees) ; Show callees of this function | |
(:prefix ("ri" . "imports") | |
"a" #'go-import-add | |
"r" #'go-remove-unused-imports) | |
(:prefix ("b" . "build") | |
:desc "go run ." "r" (cmd! (compile "go run .")) | |
:desc "go build" "b" (cmd! (compile "go build")) | |
:desc "go clean" "c" (cmd! (compile "go clean"))) | |
(:prefix ("t" . "test") | |
"t" #'+go/test-rerun | |
"a" #'+go/test-all | |
"s" #'+go/test-single | |
"n" #'+go/test-nested | |
"g" #'go-gen-test-dwim | |
"G" #'go-gen-test-all | |
"e" #'go-gen-test-exported | |
(:prefix ("b" . "bench") | |
"s" #'+go/bench-single | |
"a" #'+go/bench-all)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment