Add descriptions for go-mode map
Makes the map for go-mode easier to discover.
This commit is contained in:
parent
b88c712715
commit
1c20e33e03
1 changed files with 4 additions and 4 deletions
|
@ -26,7 +26,7 @@
|
||||||
:localleader
|
:localleader
|
||||||
"e" #'+go/play-buffer-or-region
|
"e" #'+go/play-buffer-or-region
|
||||||
"i" #'go-goto-imports ; Go to imports
|
"i" #'go-goto-imports ; Go to imports
|
||||||
(:prefix "h"
|
(:prefix ("h" . "help")
|
||||||
"." #'godoc-at-point ; Lookup in godoc
|
"." #'godoc-at-point ; Lookup in godoc
|
||||||
"d" #'go-guru-describe ; Describe this
|
"d" #'go-guru-describe ; Describe this
|
||||||
"v" #'go-guru-freevars ; List free variables
|
"v" #'go-guru-freevars ; List free variables
|
||||||
|
@ -38,14 +38,14 @@
|
||||||
"w" #'go-guru-what ; What query
|
"w" #'go-guru-what ; What query
|
||||||
"c" #'go-guru-callers ; Show callers of this function
|
"c" #'go-guru-callers ; Show callers of this function
|
||||||
"C" #'go-guru-callees) ; Show callees of this function
|
"C" #'go-guru-callees) ; Show callees of this function
|
||||||
(:prefix "ri"
|
(:prefix ("ri" . "imports")
|
||||||
"a" #'go-import-add
|
"a" #'go-import-add
|
||||||
"r" #'go-remove-unused-imports)
|
"r" #'go-remove-unused-imports)
|
||||||
(:prefix "b"
|
(:prefix ( "b" . "build")
|
||||||
:desc "go run ." "r" (λ! (compile "go run ."))
|
:desc "go run ." "r" (λ! (compile "go run ."))
|
||||||
:desc "go build" "b" (λ! (compile "go build"))
|
:desc "go build" "b" (λ! (compile "go build"))
|
||||||
:desc "go clean" "c" (λ! (compile "go clean")))
|
:desc "go clean" "c" (λ! (compile "go clean")))
|
||||||
(:prefix "t"
|
(:prefix ("t" . "test")
|
||||||
"t" #'+go/test-rerun
|
"t" #'+go/test-rerun
|
||||||
"a" #'+go/test-all
|
"a" #'+go/test-all
|
||||||
"s" #'+go/test-single
|
"s" #'+go/test-single
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue