Skip to content

config: use remote gopls by default #2905

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 6, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion autoload/go/config.vim
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ function! go#config#DiagnosticsEnabled() abort
endfunction

function! go#config#GoplsOptions() abort
return get(g:, 'go_gopls_options', [])
return get(g:, 'go_gopls_options', ['-remote=auto'])
endfunction

" Set the default value. A value of "1" is a shortcut for this, for
Expand Down
2 changes: 1 addition & 1 deletion doc/vim-go.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1782,7 +1782,7 @@ options may also need to be adjusted.

*'g:go_gopls_options'*

The commandline arguments to pass to gopls. By default, it's an empty array.
The commandline arguments to pass to gopls. By default, it's `-remote=auto`.
>
let g:go_gopls_options = []
<
Expand Down