yats.vim icon indicating copy to clipboard operation
yats.vim copied to clipboard

Multiple assignment indentation behavior changed

Open dashkb opened this issue 4 years ago • 0 comments

I use vim-polyglot and so only discovered this plugin today - thank you @HerringtonDarkholme for this fantastic work!

It looks like #197 introduced a change in the way comma-separated assignments are indented. ~~I'm not sure if this was intentional or not, but it surprised me (and I prefer the pre-change behavior) so I tracked it down. It's not clear to me what was fixed in #197 but it looks like the solution specifically targets commas?~~ Seems like that regex needs a bit more fiddling. I see that there's test coverage, so I'll open a PR with a failing test and see if I can fix it.

Here's what I'm seeing:

It's also broken in JSON / object literals.

dashkb avatar Oct 15 '20 14:10 dashkb