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
A contribution guide for adding preconfigured formatters #97
Comments
So are you asking for us to provide some formatter-config out of the box? I had avoided that as it's hard to guess what everyone uses and having people provide their own was the simplest and most effective solution. Many of the formatters could be ported from neoformat, which is the point of the |
Yes. I would be willing to do this over the upcoming weekend (hopefully) by porting configs over from
These could be defaults that people could override with their own configs if it doesn't satisfy their needs, but coming from
The |
I do not want to add a bunch of configs out of the box. As I said, providing defaults is hard to do as everyone has opinions on what tool should be used. For instance, when I had used neoformat, I had to go through and disable every formatter for every filetype that prettier supported in order to just use prettier. If this were to move forward, I think the way to handle this would be
Then folks could consume if they wanted by just importing that one config. What do you think of that? |
Looking through my config again, I discovered that I had the same issue with Would you be willing to accept a pull request over the weekend with configs ported over from EDIT: I would also like to add a In other words this (1):
, or this (2):
or your original design (3)? |
I like option 2, Let's start with some of the more common ones for
I'm not sure which filetypes are the most popular, but this will be at least a good starting point. |
Expect a PR on the weekend with those added in. I'll link this issue on there. I'll also modify the |
I think As a side note, I would like to promote the combination of |
Same here. I've been using this for quite some time now and the experience is great. 😄 |
This is the only thing that is keeping me from switching from
neoformat
since they have a bunch of preconfigured formatters.I would much rather contribute to this repo to add preconfigured formatters than to copy and paste a bunch of formatter configurations that are going to be the same for everyone anyway. I bet a lot of them could be ported straight from
neoformat
and then patched if users notice bugs.Why don't I just stick with
neoformat
then? It is because it is written in Vimscript and it is synchronous which makes me wait for around 4-5s on >1000 LoC python files.The text was updated successfully, but these errors were encountered: