21 lines
1.3 KiB
Lua
21 lines
1.3 KiB
Lua
vim.api.nvim_set_keymap('x', 'gA', '<Plug>(EasyAlign)', {})
|
|
vim.api.nvim_set_keymap('n', 'gA', '<Plug>(EasyAlign)', {})
|
|
|
|
vim.g.easy_align_delimiters = {
|
|
[';'] = { pattern = ';' , left_margin = 0 },
|
|
['['] = { pattern = '[' , left_margin = 1, right_margin = 0 },
|
|
[']'] = { pattern = ']' , left_margin = 0, right_margin = 1 },
|
|
[','] = { pattern = ',' , left_margin = 0, right_margin = 1 },
|
|
[')'] = { pattern = ')' , left_margin = 0, right_margin = 0 },
|
|
['('] = { pattern = '(' , left_margin = 0, right_margin = 0 },
|
|
['='] = { pattern = [[<\?=>\?]], left_margin = 1, right_margin = 1 },
|
|
['|'] = { pattern = [[|\?|]] , left_margin = 1, right_margin = 1 },
|
|
['&'] = { pattern = [[&\?&]] , left_margin = 1, right_margin = 1 },
|
|
[':'] = { pattern = ':' , left_margin = 1, right_margin = 1 },
|
|
['?'] = { pattern = '?' , left_margin = 1, right_margin = 1 },
|
|
['<'] = { pattern = '<' , left_margin = 1, right_margin = 0 },
|
|
['\\'] = { pattern = '\\' , left_margin = 1, right_margin = 0 },
|
|
['+'] = { pattern = '+' , left_margin = 1, right_margin = 1 },
|
|
['>'] = { pattern = '->' , left_margin = 1, right_margin = 1 },
|
|
['#'] = { pattern = '#-' , left_margin = 1, right_margin = 1 }
|
|
}
|