diff options
author | David Houston <houstdav000@gmail.com> | 2021-11-09 02:53:44 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-09 16:53:44 +0900 |
commit | 8b3b16d71c4c683da6f3ca39662d207a3e894901 (patch) | |
tree | d221ad3ec518fcfff3c33bfe33e5e9ac5621271a /autoload/ale/fix/registry.vim | |
parent | f37cd1fd4fc17173a98649d8a0b2f37ce7ba61cf (diff) | |
download | ale-8b3b16d71c4c683da6f3ca39662d207a3e894901.zip |
Implement gofumpt Fixer (#3968)
* Implement gofumpt Fixer
Add an implementation with test and documentation for the gofumpt go
code formatter, a stricter formatter than your standard "go fmt".
Signed-off-by: David Houston <houstdav000@gmail.com>
* Add gofumpt to ale.txt TOC
Forgot to add gofumpt to the ALE vim help Table of Contents, so do so.
Signed-off-by: David Houston <houstdav000@gmail.com>
* Fix Test Setup Method Capitalization
I had put "Setup" instead of "SetUp" for "ale#assert#SetUpFixerTests".
Fix such.
Signed-off-by: David Houston <houstdav000@gmail.com>
* Fix typos
Add a missing space, remove an extra bracket by actually running tests
locally first. Would've been smart to do that from the beginning...
Signed-off-by: David Houston <houstdav000@gmail.com>
Diffstat (limited to 'autoload/ale/fix/registry.vim')
-rw-r--r-- | autoload/ale/fix/registry.vim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/autoload/ale/fix/registry.vim b/autoload/ale/fix/registry.vim index c6764daf..eb7d7f53 100644 --- a/autoload/ale/fix/registry.vim +++ b/autoload/ale/fix/registry.vim @@ -246,6 +246,11 @@ let s:default_registry = { \ 'suggested_filetypes': ['go'], \ 'description': 'Fix Go files with go fmt.', \ }, +\ 'gofumpt': { +\ 'function': 'ale#fixers#gofumpt#Fix', +\ 'suggested_filetypes': ['go'], +\ 'description': 'Fix Go files with gofumpt, a stricter go fmt.', +\ }, \ 'goimports': { \ 'function': 'ale#fixers#goimports#Fix', \ 'suggested_filetypes': ['go'], |