fsprojects / fantomas-tools

Collection of tools used when developing for Fantomas
https://fsprojects.github.io/fantomas-tools/
MIT License
34 stars 8 forks source link

How do I keep my alignment? #601

Closed WillEhrendreich closed 12 months ago

WillEhrendreich commented 12 months ago

Hey guys, thanks for the awesome tool.

Hey, I am a weirdo, I'll admit it, but since I started using neovim use the Mini.Align plugin, I've really started to enjoy how this style looks and how easy it is to do with that plugin. image

Obviously this isn't everyone's cup of tea, and I'm fine with that, in fact when I worked primarily in visual studio I'd see this sort of thing from time to time and hate it, my mind would reel at the nightmare it would be to maintain the alignment, not realizing the way they did it was likely with a tool so it wouldn't be manual..

Anyway, mostly I work on my codebases by myself, so .. I likes what I likes and it's my room so I like to decorate it with my stuff, you know?

I'd really like to use fantomas too, there are a lot of other things I'd love to have done automatically, but I just don't want it to mangle my text alignment with regard to the delimiters I set.

but when I format on save it does this.. image Is it the end of the world? Well.. no.. I guess..

But I'm annoyed about it, and if it's easily toggled to not do this I thought I'd ask, because I didn't see it as something that could be configured.

If not, I totally get it, maybe it's too much trouble than it's worth. But maybe it's something that can be as an option?

dawedawe commented 12 months ago

Hey @WillEhrendreich, check out our configuration docs

MultilineBracketStyle = Stroustrup
IndentSize = 2

should get you somewhere. You can play with these things in the fantomas-tool

WillEhrendreich commented 12 months ago

Actually I got the bracket style and indent size, im talking about the alignments of the assignments of each field. I like them with the = all in a column. It makes column based multi-line editing very easy.

dawedawe commented 12 months ago

Sorry, we don't support that.