{"id":15681174,"url":"https://github.com/haya14busa/vim-gofmt","last_synced_at":"2025-05-07T12:10:54.991Z","repository":{"id":142020705,"uuid":"81006365","full_name":"haya14busa/vim-gofmt","owner":"haya14busa","description":"Formats Go source code asynchronously with multiple Go formatters.","archived":false,"fork":false,"pushed_at":"2017-05-04T02:15:25.000Z","size":5,"stargazers_count":11,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-31T09:51:07.343Z","etag":null,"topics":["formatter","go","golang","vim","vim-plugin"],"latest_commit_sha":null,"homepage":"","language":"Vim script","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/haya14busa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null},"funding":{"github":"haya14busa","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2017-02-05T16:45:38.000Z","updated_at":"2018-01-28T06:01:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"3797a315-e2bd-4df1-a299-619a08f9e73d","html_url":"https://github.com/haya14busa/vim-gofmt","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haya14busa%2Fvim-gofmt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haya14busa%2Fvim-gofmt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haya14busa%2Fvim-gofmt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haya14busa%2Fvim-gofmt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/haya14busa","download_url":"https://codeload.github.com/haya14busa/vim-gofmt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252873949,"owners_count":21817714,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["formatter","go","golang","vim","vim-plugin"],"created_at":"2024-10-03T16:50:22.536Z","updated_at":"2025-05-07T12:10:54.975Z","avatar_url":"https://github.com/haya14busa.png","language":"Vim script","funding_links":["https://github.com/sponsors/haya14busa"],"categories":[],"sub_categories":[],"readme":"# vim-gofmt\n[![LICENSE](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)\n\nvim-gofmt formats Go source code asynchronously with multiple Go formatters.\n\nIt's experimental and API may changes, but it should work.\n\n## Usage\n\n### :Fmt\n\n`:Fmt` formats Go source code in current buffer using `g:gofmt_formatters`.\n\nIt runs asynchronously and doesn't block editing.\n\n### g:gofmt_formatters\n\ndefault:\n\n```vim\nlet g:gofmt_formatters = [\n\\   { 'cmd': 'gofmt', 'args': ['-s', '-w'] },\n\\   { 'cmd': 'goimports', 'args': ['-w'] },\n\\ ]\n```\n\nEach formatters are used in consecutively in order of the list.\n\nExample:\n\n```\n$ go get -u github.com/rhysd/gofmtrlx\n$ go get -u github.com/haya14busa/go-typeconv/cmd/gotypeconv\n```\n\n```vim\nlet g:gofmt_formatters = [\n\\   { 'cmd': 'gofmtrlx', 'args': ['-s', '-w'] },\n\\   { 'cmd': 'goimports', 'args': ['-w'] },\n\\   { 'cmd': 'gotypeconv', 'args': ['-w'] },\n\\ ]\n```\n\n## :bird: Author\nhaya14busa (https://github.com/haya14busa)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaya14busa%2Fvim-gofmt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhaya14busa%2Fvim-gofmt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaya14busa%2Fvim-gofmt/lists"}