Skip to content

Commit

Permalink
doc: edit :GoImports documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
bhcleek committed Apr 23, 2021
1 parent 3ec431e commit f54d325
Showing 1 changed file with 16 additions and 17 deletions.
33 changes: 16 additions & 17 deletions doc/vim-go.txt
Original file line number Diff line number Diff line change
Expand Up @@ -227,10 +227,9 @@ COMMANDS *go-commands*
*:GoImports*
:GoImports

Filter the current Go buffer through goimports (needs to be installed).
`goimports` automatically discards/add import path based on the code. Like
|:GoFmt|, It tries to preserve cursor position and avoids replacing the
buffer with stderr output.
Adjust imports using the setting of `g:go_imports_mode`. Like |:GoFmt|, It
tries to preserve cursor position and avoids replacing the buffer with
stderr output.

*:GoPlay*
:[range]GoPlay
Expand Down Expand Up @@ -935,7 +934,7 @@ documentation in the |go-commands| section. Available <Plug> keys are:

*(go-run)*

Calls `go run` for the current main package
Calls `go run` for the current main package.

*(go-run-tab)*

Expand All @@ -954,31 +953,31 @@ This option is neovim only.

*(go-build)*

Calls `go build` for the current package
Calls `go build` for the current package.

*(go-generate)*

Calls `go generate` for the current package
Calls `go generate` for the current package.

*(go-info)*

Shows type information for the word under the cursor
Shows type information for the word under the cursor.

*(go-install)*

Calls `go install` for the current package
Calls `go install` for the current package.

*(go-test)*

Calls `go test` for the current package
Calls `go test` for the current package.

*(go-test-func)*

Calls `go test -run '...'` for the test function immediate to cursor

*(go-test-compile)*

Calls `go test -c` for the current package
Calls `go test -c` for the current package.

*(go-coverage)*

Expand All @@ -987,7 +986,7 @@ coverage annotation.

*(go-coverage-clear)*

Clears the coverage annotation
Clears the coverage annotation.

*(go-coverage-toggle)*

Expand All @@ -997,25 +996,25 @@ annotation.

*(go-imports)*

Calls `goimports` for the current package
Adjust imports for the current buffer.

*(go-lint)*

Calls `golint` for the current package
Calls `golint` for the current package.

*(go-vet)*

Calls `go vet` for the current package
Calls `go vet` for the current package.


*(go-files)*

Show source files that depends for the current package
Show source files that depends for the current package.


*(go-deps)*

Show dependencies for the current package
Show dependencies for the current package.

*(go-doc)*

Expand Down

0 comments on commit f54d325

Please sign in to comment.