From b5f8cb296ae2679f5acb2c927e116763efccaab3 Mon Sep 17 00:00:00 2001 From: yoan667 <125768742+yoan667@users.noreply.github.com> Date: Sat, 7 Feb 2026 09:24:34 +0100 Subject: [PATCH] doc goimport (#5093) --- doc/ale-go.txt | 26 +++++++++++++++++++++++++- doc/ale.txt | 1 + 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/doc/ale-go.txt b/doc/ale-go.txt index 2e9d5506..1c2fc95b 100644 --- a/doc/ale-go.txt +++ b/doc/ale-go.txt @@ -6,7 +6,7 @@ ALE Go Integration *ale-go-options* Integration Information ALE enables `gofmt`, `gopls` and `go vet` by default. It also supports `staticcheck`, -`go build, ``gosimple`, `golangserver`, and `golangci-lint. +`go build, ``gosimple`, `golangserver`, `golangci-lint`, and `goimports`. To enable `golangci-lint`, update |g:ale_linters| as appropriate. A possible configuration is to enable golangci-lint and `gofmt: @@ -118,6 +118,30 @@ g:ale_go_gofumpt_options Options to pass to the gofumpt fixer. +=============================================================================== +goimports *ale-go-goimports* + + *ale-options.go_goimports_executable* + *g:ale_go_goimports_executable* + *b:ale_go_goimports_executable* +go_goimports_executable +g:ale_go_goimports_executable + Type: |String| + Default: `'goimports'` + + This variable can be set to change the executable path for goimports. + + *ale-options.go_goimports_options* + *g:ale_go_goimports_options* + *b:ale_go_goimports_options* +go_goimports_options +g:ale_go_goimports_options + Type: |String| + Default: `''` + + This variable can be set to pass additional options to the goimports fixer. + + =============================================================================== golangci-lint *ale-go-golangci-lint* diff --git a/doc/ale.txt b/doc/ale.txt index 320048f7..380914bc 100644 --- a/doc/ale.txt +++ b/doc/ale.txt @@ -3578,6 +3578,7 @@ documented in additional help files. gobuild...............................|ale-go-gobuild| gofmt.................................|ale-go-gofmt| gofumpt...............................|ale-go-gofumpt| + goimports.............................|ale-go-goimports| golangci-lint.........................|ale-go-golangci-lint| golangserver..........................|ale-go-golangserver| golines...............................|ale-go-golines|