Skip to content

Commit 2c15ddc

Browse files
committed
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.
1 parent 8513feb commit 2c15ddc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

autoload/go/config.vim

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ function! go#config#GocodeProposeBuiltins() abort
149149
endfunction
150150

151151
function! go#config#GocodeProposeSource() abort
152-
return get(g:, 'go_gocode_propose_source', 1)
152+
return get(g:, 'go_gocode_propose_source', 0)
153153
endfunction
154154

155155
function! go#config#EchoCommandInfo() abort

doc/vim-go.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1622,7 +1622,7 @@ Specifies whether `gocode` should use source files instead of binary packages
16221622
for autocompletion proposals. When disabled, only identifiers from the current
16231623
package and packages that have been installed will proposed.
16241624
>
1625-
let g:go_gocode_propose_source = 1
1625+
let g:go_gocode_propose_source = 0
16261626
<
16271627
*'g:go_gocode_unimported_packages'*
16281628

0 commit comments

Comments
 (0)