@@ -512,6 +512,7 @@ CTRL-t
512
512
syntax to the binary name. e.g. `:GoInstallBinaries
[email protected] `.
513
513
514
514
Set | 'g:go_get_update' | to disable updating dependencies.
515
+ Set | 'g:go_exclude_binaries' | to disable installing specific binaries.
515
516
516
517
*:GoUpdateBinaries*
517
518
:GoUpdateBinaries [binaries]
@@ -525,6 +526,7 @@ CTRL-t
525
526
syntax to the binary name. e.g. `:GoUpdateBinaries
[email protected] `.
526
527
527
528
Set | 'g:go_get_update' | to disable updating dependencies.
529
+ Set | 'g:go_exclude_binaries' | to disable updating specific binaries.
528
530
529
531
*:GoImplements*
530
532
:GoImplements
@@ -2489,14 +2491,53 @@ Highlight the current line and breakpoints in the debugger.
2489
2491
let g:go_highlight_debug = 1
2490
2492
<
2491
2493
2492
- *'go :go_debug_breakpoint_sign_text'*
2494
+ *'g :go_debug_breakpoint_sign_text'*
2493
2495
2494
2496
Set the sign text used for breakpoints in the debugger. By default it's '>'.
2495
2497
2496
2498
>
2497
2499
let g:go_debug_breakpoint_sign_text = '>'
2498
2500
<
2499
2501
2502
+ *'g:go_exclude_binaries'*
2503
+
2504
+ Set a list of binaries to exclude from installing/updating when running either
2505
+ | :GoInstallBinaries | or | :GoUpdateBinaries | . Possible values are all keys used
2506
+ in the `s: packages ` dictionary:
2507
+
2508
+ >
2509
+ let g:go_exclude_binaries = [
2510
+ \ 'asmfmt',
2511
+ \ 'dlv',
2512
+ \ 'errcheck',
2513
+ \ 'fillstruct',
2514
+ \ 'godef',
2515
+ \ 'goimports',
2516
+ \ 'revive',
2517
+ \ 'gopls',
2518
+ \ 'golangci-lint',
2519
+ \ 'staticcheck',
2520
+ \ 'gomodifytags',
2521
+ \ 'gorename',
2522
+ \ 'gotags',
2523
+ \ 'impl',
2524
+ \ 'motion',
2525
+ \ 'iferr',
2526
+ \]
2527
+ <
2528
+
2529
+ Default:
2530
+
2531
+ >
2532
+ let g:go_exclude_binaries = []
2533
+ <
2534
+
2535
+ To exclude, for example, `errcheck` , `dlv` , and `golangci- lint` :
2536
+
2537
+ >
2538
+ let g:go_exclude_binaries = ['errcheck', 'dlv', 'golangci-lint']
2539
+ <
2540
+
2500
2541
==============================================================================
2501
2542
FAQ TROUBLESHOOTING *go-troubleshooting*
2502
2543
0 commit comments