-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add config to exclude certain binaries from updating
Signed-off-by: Elias Van Ootegem <[email protected]>
- Loading branch information
1 parent
b5fc468
commit 4c6513e
Showing
3 changed files
with
51 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -512,6 +512,7 @@ CTRL-t | |
syntax to the binary name. e.g. `:GoInstallBinaries [email protected]`. | ||
|
||
Set |'g:go_get_update'| to disable updating dependencies. | ||
Set |'g:go_exclude_binaries'| to disable installing specific binaries. | ||
|
||
*:GoUpdateBinaries* | ||
:GoUpdateBinaries [binaries] | ||
|
@@ -525,6 +526,7 @@ CTRL-t | |
syntax to the binary name. e.g. `:GoUpdateBinaries [email protected]`. | ||
|
||
Set |'g:go_get_update'| to disable updating dependencies. | ||
Set |'g:go_exclude_binaries'| to disable updating specific binaries. | ||
|
||
*:GoImplements* | ||
:GoImplements | ||
|
@@ -2489,14 +2491,53 @@ Highlight the current line and breakpoints in the debugger. | |
let g:go_highlight_debug = 1 | ||
< | ||
|
||
*'go:go_debug_breakpoint_sign_text'* | ||
*'g:go_debug_breakpoint_sign_text'* | ||
|
||
Set the sign text used for breakpoints in the debugger. By default it's '>'. | ||
|
||
> | ||
let g:go_debug_breakpoint_sign_text = '>' | ||
< | ||
|
||
*'g:go_exclude_binaries'* | ||
|
||
Set a list of binaries to exclude from installing/updating when running either | ||
|:GoInstallBinaries| or |:GoUpdateBinaries|. Possible values are all keys used | ||
in the `s:packages` dictionary: | ||
|
||
> | ||
let g:go_exclude_binaries = [ | ||
\ 'asmfmt', | ||
\ 'dlv', | ||
\ 'errcheck', | ||
\ 'fillstruct', | ||
\ 'godef', | ||
\ 'goimports', | ||
\ 'revive', | ||
\ 'gopls', | ||
\ 'golangci-lint', | ||
\ 'staticcheck', | ||
\ 'gomodifytags', | ||
\ 'gorename', | ||
\ 'gotags', | ||
\ 'impl', | ||
\ 'motion', | ||
\ 'iferr', | ||
\] | ||
< | ||
|
||
Default: | ||
|
||
> | ||
let g:go_exclude_binaries = [] | ||
< | ||
|
||
To exclude, for example, `errcheck`, `dlv`, and `golangci-lint`: | ||
|
||
> | ||
let g:go_exclude_binaries = ['errcheck', 'dlv', 'golangci-lint'] | ||
< | ||
|
||
============================================================================== | ||
FAQ TROUBLESHOOTING *go-troubleshooting* | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters