Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: improve vim config with usage of gofmt #337

Merged
merged 1 commit into from
Sep 19, 2022

Conversation

tbruyelle
Copy link
Contributor

@tbruyelle tbruyelle commented Sep 19, 2022

The change allows to run gofmt when the buffer is saved. The buffer is then updated with the formatted code.

If errors occur, they feed the quickfix list, thanks to the cexpr command.

gofmt can be replaced with gofumpt without other changes. Using goimports is also possible but I'm not sure the added imports will be correct for a gno file.

Thanks @moul for the gofmt tip ;)

@moul moul merged commit 80f2ae2 into gnolang:master Sep 19, 2022
@tbruyelle tbruyelle deleted the docs/vim-config branch September 19, 2022 12:19
moul-bot pushed a commit to moul/gno that referenced this pull request Sep 21, 2022
@moul moul added this to the 🏗3️⃣ test3.gno.land milestone Oct 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

2 participants