Skip to content

Commit

Permalink
add an option to show type info when completion is done
Browse files Browse the repository at this point in the history
  • Loading branch information
haya14busa committed Nov 19, 2016
1 parent 10c805b commit 298520c
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 298520c

Please sign in to comment.