align.nvim icon indicating copy to clipboard operation
align.nvim copied to clipboard

[BUG] Using align causes all splits to collapse.

Open voronind-com opened this issue 1 year ago • 2 comments

Usage:

rekey_visual('<Leader>A', '<cmd>lua require("align").align_to_string({ preview = true, regex = false, reverse = false })<cr>') -- align from left.
rekey_visual('<Leader>a', '<cmd>lua require("align").align_to_string({ preview = true, regex = false, reverse = true })<cr>')  -- align from right.

When I press my combo to align, all my splits are closed immediately after I input any character.

voronind-com avatar Nov 03 '23 18:11 voronind-com

Should be temporary, align uses a temporary buffer to display the preview so that it doesn't pollute the undotree.

Vonr avatar Nov 04 '23 00:11 Vonr

@voronind-com Did you solve it? I have the same problem.

update: my current workaround is to use the older commit 2004d26.

nyngwang avatar Jan 16 '24 02:01 nyngwang