diff --git a/doc/vim-go.txt b/doc/vim-go.txt index 51c7d6e82a..ed245d61da 100644 --- a/doc/vim-go.txt +++ b/doc/vim-go.txt @@ -543,6 +543,12 @@ CTRL-t If [!] is not given, the first error is jumped to. +*:GoCallers* +:GoCallers + + Show "callers" relation for a selected function. A list of possible + callers for the selected function under the cursor is shown in a location + list. *:GoReferrers* :GoReferrers @@ -1021,39 +1027,13 @@ Show the interfaces that the type under the cursor implements. Rename the identifier under the cursor to the desired new name. - *(go-callees)* - -Show the call targets for the type under the cursor. - *(go-callers)* Show possible callers of selected function. - - *(go-describe)* - -Describe selected syntax: definition, methods, etc. - - *(go-callstack)* - -Show path from callgraph root to selected function. - - *(go-freevars)* - -Show free variables of selection. - - *(go-channelpeers)* - *(go-channel-peers)* - -Show send/receive corresponding to selected channel op. - *(go-referrers)* Show all refs to entity denoted by selected identifier. - *(go-pointsto)* - -Show all variables to which the pointer under the cursor may point. - *(go-metalinter)* Calls `go-metalinter` for the current directory. diff --git a/ftplugin/go/mappings.vim b/ftplugin/go/mappings.vim index a210e8d89e..54e68af852 100644 --- a/ftplugin/go/mappings.vim +++ b/ftplugin/go/mappings.vim @@ -38,6 +38,7 @@ nnoremap (go-imports) :call go#fmt#Format(1) nnoremap (go-fmt) :call go#fmt#Format(0) nnoremap (go-implements) :call go#implements#Implements(-1) +nnoremap (go-callers) :call go#calls#Callers() nnoremap (go-referrers) :call go#referrers#Referrers(-1) nnoremap (go-sameids) :call go#sameids#SameIds(1) nnoremap (go-sameids-toggle) :call go#sameids#ToggleSameIds()