Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 6 additions & 26 deletions doc/vim-go.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down
1 change: 1 addition & 0 deletions ftplugin/go/mappings.vim
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ nnoremap <silent> <Plug>(go-imports) :<C-u>call go#fmt#Format(1)<CR>
nnoremap <silent> <Plug>(go-fmt) :<C-u>call go#fmt#Format(0)<CR>

nnoremap <silent> <Plug>(go-implements) :<C-u>call go#implements#Implements(-1)<CR>
nnoremap <silent> <Plug>(go-callers) :<C-u>call go#calls#Callers()<CR>
nnoremap <silent> <Plug>(go-referrers) :<C-u>call go#referrers#Referrers(-1)<CR>
nnoremap <silent> <Plug>(go-sameids) :<C-u>call go#sameids#SameIds(1)<CR>
nnoremap <silent> <Plug>(go-sameids-toggle) :<C-u>call go#sameids#ToggleSameIds()<CR>
Expand Down
Loading