Vonr / align.nvim

A minimal plugin for NeoVim for aligning lines
GNU General Public License v3.0
150 stars 4 forks source link

[BUG] Using align causes all splits to collapse. #19

Closed voronind-com closed 5 months ago

voronind-com commented 11 months ago

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.

Vonr commented 11 months ago

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

nyngwang commented 8 months ago

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

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