Closed hopezh closed 1 year ago
An alignment rule is identified by a single-character key, so you can't use --
. You can't use -
either, because it is used for other purpose (counting from backwards). This one uses l
(for lua).
let g:easy_align_delimiters = {
\ 'l': { 'pattern': '--\+', 'delimiter_align': 'l', 'ignore_groups': ['!Comment'] }
\ }
print(1) -- foo
print(2) ----- bar
print(3) --- baz
becomes
print(1) -- foo
print(2) ----- bar
print(3) --- baz
on gaipl
I tried the following in my
keymap.lua
file, based on the settings for ":". However, it's not working...