diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2021-06-27 10:07:29 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2021-06-27 10:07:29 +0200 |
commit | 4f5388350be1052f610b830c8fce8fbc17370ec6 (patch) | |
tree | 425cb8ee70c123233055a61d56d73e2eb97536db /autoload/go/config.vim | |
parent | 4899585281beab51e5dff1d9ae4d3159244a8275 (diff) | |
download | vim-polyglot-4f5388350be1052f610b830c8fce8fbc17370ec6.tar.gz vim-polyglot-4f5388350be1052f610b830c8fce8fbc17370ec6.zip |
Update
Diffstat (limited to 'autoload/go/config.vim')
-rw-r--r-- | autoload/go/config.vim | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/autoload/go/config.vim b/autoload/go/config.vim index d20ead8b..f7389cdc 100644 --- a/autoload/go/config.vim +++ b/autoload/go/config.vim @@ -275,7 +275,7 @@ endfunction function! go#config#MetalinterAutosaveEnabled() abort let l:default = [] if get(g:, 'go_metalinter_command', s:default_metalinter) == 'golangci-lint' - let l:default = ['govet', 'golint'] + let l:default = ['govet', 'revive'] endif return get(g:, 'go_metalinter_autosave_enabled', l:default) @@ -284,14 +284,14 @@ endfunction function! go#config#MetalinterEnabled() abort let l:default = [] if get(g:, 'go_metalinter_command', s:default_metalinter) == 'golangci-lint' - let l:default = ['vet', 'golint', 'errcheck'] + let l:default = ['vet', 'revive', 'errcheck'] endif return get(g:, 'go_metalinter_enabled', l:default) endfunction function! go#config#GolintBin() abort - return get(g:, "go_golint_bin", "golint") + return get(g:, "go_golint_bin", "revive") endfunction function! go#config#ErrcheckBin() abort @@ -615,6 +615,10 @@ function! go#config#DebugMappings() abort return extend(l:user, l:default, 'keep') endfunction +function! go#config#DocBalloon() abort + return get(g:, 'go_doc_balloon', 0) +endfunction + " Set the default value. A value of "1" is a shortcut for this, for " compatibility reasons. if exists("g:go_gorename_prefill") && g:go_gorename_prefill == 1 |