diff --git a/doc/vim-go.txt b/doc/vim-go.txt index 7518949648..f0ba4ce346 100644 --- a/doc/vim-go.txt +++ b/doc/vim-go.txt @@ -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* diff --git a/plugin/go.vim b/plugin/go.vim index 8a9eaf2ae2..eb573614f2 100644 --- a/plugin/go.vim +++ b/plugin/go.vim @@ -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