Skip to content
This repository has been archived by the owner on Mar 24, 2022. It is now read-only.

code formatters #14

Open
brysgo opened this issue May 25, 2017 · 3 comments
Open

code formatters #14

brysgo opened this issue May 25, 2017 · 3 comments

Comments

@brysgo
Copy link

brysgo commented May 25, 2017

How do people feel about automatic code formatters?

Some of them have gotten quite good (i.e. prettier, go fmt, etc)

@nertzy
Copy link

nertzy commented May 25, 2017

We have a small precedent in that we have an auto-indent keybinding.

I think it would be generally appreciated, as long as it was an opt-in sort of thing — hit a keybinding and the selection (or whole file) gets auto-formatted.

https://github.com/pivotal/vim-config/blob/1fecad0a3bf3b6d743988fcae68fc24d8133c222/init/keybindings.vim#L47

@brysgo
Copy link
Author

brysgo commented May 25, 2017

Cool, I will put together a pull request to set up neoformat to bind to -- which should give us a good spread of autoformatting.

@brysgo
Copy link
Author

brysgo commented Jun 1, 2017

I'm trying to look at tpope/vim-abolish for inspiration, but this voodoo may take longer than I planned.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants