Skip to content

Commit

Permalink
default gocode to propose from source
Browse files Browse the repository at this point in the history
  • Loading branch information
bhcleek committed Sep 13, 2018
1 parent 9254470 commit d212d59
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion autoload/go/config.vim
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ function! go#config#GocodeProposeBuiltins() abort
endfunction

function! go#config#GocodeProposeSource() abort
return get(g:, 'go_gocode_propose_source', 0)
return get(g:, 'go_gocode_propose_source', 1)
endfunction

function! go#config#EchoCommandInfo() abort
Expand Down
6 changes: 3 additions & 3 deletions doc/vim-go.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1609,10 +1609,10 @@ to an autocompletion proposals. By default it is enabled.
*'g:go_gocode_propose_source'*

Specifies whether `gocode` should use source files instead of binary packages
for autocompletion proposals. By default it is disabled because it is
currently much slower.
for autocompletion proposals. When disabled, only identifiers from the current
package and packages that have been installed will proposed.
>
let g:go_gocode_propose_source = 0
let g:go_gocode_propose_source = 1
<
*'g:go_gocode_socket_type'*

Expand Down

0 comments on commit d212d59

Please sign in to comment.