Skip to content

Commit de782e8

Browse files
authored
Merge pull request #1101 from haya14busa/option-go_echo_type_info
add an option to show type info when completion is done
2 parents ec9f4ac + 298520c commit de782e8

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

doc/vim-go.txt

+7
Original file line numberDiff line numberDiff line change
@@ -1440,6 +1440,13 @@ the `hello_world.go` file is used.
14401440
The default is: >
14411441
14421442
let g:go_decls_includes = 'func,type'
1443+
<
1444+
*'g:go_echo_go_info'*
1445+
1446+
Use this option to show the identifier information when completion is done. By
1447+
default it's enabled >
1448+
1449+
let g:go_echo_go_info = 1
14431450
<
14441451
==============================================================================
14451452
TROUBLESHOOTING *go-troubleshooting*

plugin/go.vim

+4
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,10 @@ endfunction
126126
" ============================================================================
127127
"
128128
function! s:echo_go_info()
129+
if !get(g:, "go_echo_go_info", 1)
130+
return
131+
endif
132+
129133
if !exists('v:completed_item') || empty(v:completed_item)
130134
return
131135
endif

0 commit comments

Comments
 (0)