Add gopls format as a Go fixer

This commit is contained in:
Sean Enck
2023-01-28 02:20:29 -05:00
committed by GitHub
parent 65088b59b7
commit 0af4899605
4 changed files with 100 additions and 0 deletions

View File

@@ -301,6 +301,11 @@ let s:default_registry = {
\ 'suggested_filetypes': ['gomod'],
\ 'description': 'Fix Go module files with go mod edit -fmt.',
\ },
\ 'gopls': {
\ 'function': 'ale#fixers#gopls#Fix',
\ 'suggested_filetypes': ['go'],
\ 'description': 'Fix Go files with gopls.',
\ },
\ 'tslint': {
\ 'function': 'ale#fixers#tslint#Fix',
\ 'suggested_filetypes': ['typescript'],