nvim : align : disable preview and enable regex.

This commit is contained in:
Dmitry Voronin 2023-12-05 15:56:59 +03:00
parent 6a38f800ec
commit fda2bc324b

View file

@ -1,4 +1,4 @@
require('key/rekey')
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.
rekey_visual('<Leader>A', '<cmd>lua require("align").align_to_string({ preview = false, regex = true, reverse = false })<cr>') -- align from left.
rekey_visual('<Leader>a', '<cmd>lua require("align").align_to_string({ preview = false, regex = true, reverse = true })<cr>') -- align from right.