[mini.align] Align by treesitter nodes #1442
-
I think it would be great if there would be a way to align text by treesitter nodes. Maybe that's out of scope for this plugin because it's so regex centric, but there's no plugin that provides this feature as far as I know. My use case is formatting the columns of the keys list in a lazy.nvim spec. Typical spec looks like:
I think it would be awesome to be able to separate those columns by the treesitter node. Otherwise you need to get really creative with the separators. A |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Thanks for the suggestion, but that is indeed out of scope for 'mini.align'. The best approximation is to use filter step which has several special variables available for easier interactive filtering. |
Beta Was this translation helpful? Give feedback.
Thanks for the suggestion, but that is indeed out of scope for 'mini.align'. The best approximation is to use filter step which has several special variables available for easier interactive filtering.