Align by Lua key? #1592
-
Contributing guidelines
Module(s)mini.align QuestionIs it possible to align by Lua key like this?
Thinking about binding that to a mapping. Also thinking of a way to move the order of all the keys. Thanks. |
Beta Was this translation helpful? Give feedback.
Answered by
echasnovski
Feb 20, 2025
Replies: 1 comment
-
The closest approximation here is to align by
I usually resort to aligning first and then using exchange operator from 'mini.operators' with blockwise visual selections:
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
echasnovski
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The closest approximation here is to align by
,
and pressi
to apply ignoring common separators (which by default excludes separators from inside""
quotes).I usually resort to aligning first and then using exchange operator from 'mini.operators' with blockwise visual selections:
<C-v>
and select the rectangular block for the first key.gx
.gx
.