diff options
| author | yoan667 | 2026-02-07 09:24:34 +0100 |
|---|---|---|
| committer | GitHub | 2026-02-07 17:24:34 +0900 |
| commit | b5f8cb296ae2679f5acb2c927e116763efccaab3 (patch) | |
| tree | 84475f9dad048ec1eb9468a9f23abe2861992afd | |
| parent | af5a38c697e0ba062f04347d5165d97d7d1894a3 (diff) | |
| download | ale-b5f8cb296ae2679f5acb2c927e116763efccaab3.tar.gz | |
doc goimport (#5093)
| -rw-r--r-- | doc/ale-go.txt | 26 | ||||
| -rw-r--r-- | doc/ale.txt | 1 |
2 files changed, 26 insertions, 1 deletions
diff --git a/doc/ale-go.txt b/doc/ale-go.txt index 2e9d55061..1c2fc95bc 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: @@ -119,6 +119,30 @@ g:ale_go_gofumpt_options =============================================================================== +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* `golangci-lint` is a `lint_file` linter, which only lints files that are diff --git a/doc/ale.txt b/doc/ale.txt index 320048f79..380914bc5 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| |