From b2be47befcba7c2e4ae1261e4baf0fc2e7db07d8 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Sun, 31 May 2020 20:52:04 +0200 Subject: Update --- autoload/go/config.vim | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) (limited to 'autoload/go') diff --git a/autoload/go/config.vim b/autoload/go/config.vim index a7fd29f9..9ab85637 100644 --- a/autoload/go/config.vim +++ b/autoload/go/config.vim @@ -170,8 +170,8 @@ function! go#config#EchoCommandInfo() abort endfunction function! go#config#DocUrl() abort - let godoc_url = get(g:, 'go_doc_url', 'https://godoc.org') - if godoc_url isnot 'https://godoc.org' + let godoc_url = get(g:, 'go_doc_url', 'https://pkg.go.dev') + if godoc_url isnot 'https://pkg.go.dev' " strip last '/' character if available let last_char = strlen(godoc_url) - 1 if godoc_url[last_char] == '/' @@ -266,23 +266,11 @@ function! go#config#MetalinterCommand() abort endfunction function! go#config#MetalinterAutosaveEnabled() abort - let l:default_enabled = ["vet", "golint"] - - if go#config#MetalinterCommand() == "golangci-lint" - let l:default_enabled = ["govet", "golint"] - endif - - return get(g:, "go_metalinter_autosave_enabled", default_enabled) + return get(g:, "go_metalinter_autosave_enabled", ["govet", "golint"]) endfunction function! go#config#MetalinterEnabled() abort - let l:default_enabled = ["vet", "golint", "errcheck"] - - if go#config#MetalinterCommand() == "golangci-lint" - let l:default_enabled = ["govet", "golint"] - endif - - return get(g:, "go_metalinter_enabled", default_enabled) + return get(g:, "go_metalinter_enabled", ["vet", "golint", "errcheck"]) endfunction function! go#config#GolintBin() abort -- cgit v1.2.3