You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
calling the align block function assumes that a block is closed, so trying to call it on something like
file {'foo':
a => 'a',
bb => 'b',
will fail.
With smartparens/other package that autocloses brackets you can (ab)use hooks to make it work though like i have (gitlab)
the vim plugin overloads > to align arrows and then it uses some obscure combination of regexes and heuristics to figure out where unclosed blocks end. It works on minimal cases but quite easy to break with a bit of imagination, bad luck or nesting. All in all, it might not be a good implementation to copy.
It'd be nice to see feature parity with the vim plugin on this.
I guess the clean way to implement this would depend on #7
The text was updated successfully, but these errors were encountered: