Skip to content

Commit

Permalink
Merge pull request #1101 from haya14busa/option-go_echo_type_info
Browse files Browse the repository at this point in the history
add an option to show type info when completion is done
  • Loading branch information
fatih committed Nov 20, 2016
2 parents ec9f4ac + 298520c commit de782e8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
7 changes: 7 additions & 0 deletions doc/vim-go.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1440,6 +1440,13 @@ the `hello_world.go` file is used.
The default is: >
let g:go_decls_includes = 'func,type'
<
*'g:go_echo_go_info'*

Use this option to show the identifier information when completion is done. By
default it's enabled >
let g:go_echo_go_info = 1
<
==============================================================================
TROUBLESHOOTING *go-troubleshooting*
Expand Down
4 changes: 4 additions & 0 deletions plugin/go.vim
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ endfunction
" ============================================================================
"
function! s:echo_go_info()
if !get(g:, "go_echo_go_info", 1)
return
endif

if !exists('v:completed_item') || empty(v:completed_item)
return
endif
Expand Down

0 comments on commit de782e8

Please sign in to comment.