From 2c15ddca9a15fc2694d6f6b7ca9d25d4664fccaa Mon Sep 17 00:00:00 2001 From: Billie Cleek Date: Wed, 7 Nov 2018 11:59:24 -0800 Subject: [PATCH] disable proposing source by default Now that gocode support `-fallback-to-source`, `-source` does not need to be the default, as it slows down gocode significantly. --- autoload/go/config.vim | 2 +- doc/vim-go.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/go/config.vim b/autoload/go/config.vim index 898cf27902..d035c616b2 100644 --- a/autoload/go/config.vim +++ b/autoload/go/config.vim @@ -149,7 +149,7 @@ function! go#config#GocodeProposeBuiltins() abort endfunction function! go#config#GocodeProposeSource() abort - return get(g:, 'go_gocode_propose_source', 1) + return get(g:, 'go_gocode_propose_source', 0) endfunction function! go#config#EchoCommandInfo() abort diff --git a/doc/vim-go.txt b/doc/vim-go.txt index 864d3aa5df..8e09d8134e 100644 --- a/doc/vim-go.txt +++ b/doc/vim-go.txt @@ -1622,7 +1622,7 @@ Specifies whether `gocode` should use source files instead of binary packages 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 = 1 + let g:go_gocode_propose_source = 0 < *'g:go_gocode_unimported_packages'*