From 298520ce1971e223f2e80a04a2bc52418b9436eb Mon Sep 17 00:00:00 2001 From: haya14busa Date: Sat, 19 Nov 2016 20:04:00 +0900 Subject: [PATCH] add an option to show type info when completion is done --- doc/vim-go.txt | 7 +++++++ plugin/go.vim | 4 ++++ 2 files changed, 11 insertions(+) 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