comparison .chezmoitemplates/init.lua @ 796:ca13a257ffe4

feat: Add treesitter based swap mappings
author zegervdv <zegervdv@me.com>
date Tue, 06 Jun 2023 06:57:53 +0000
parents bae3c2671374
children 1108123bd416
comparison
equal deleted inserted replaced
795:bae3c2671374 796:ca13a257ffe4
360 enable = true, 360 enable = true,
361 goto_next_start = { [']]'] = '@block.outer' }, 361 goto_next_start = { [']]'] = '@block.outer' },
362 goto_previous_start = { ['[['] = '@block.outer' }, 362 goto_previous_start = { ['[['] = '@block.outer' },
363 goto_next_end = { [']['] = '@block.outer' }, 363 goto_next_end = { [']['] = '@block.outer' },
364 goto_previous_end = { ['[]'] = '@block.outer' }, 364 goto_previous_end = { ['[]'] = '@block.outer' },
365 },
366 swap = {
367 enable = true,
368 swap_next = {
369 ['<A-n>'] = '@parameter.inner',
370 },
371 swap_previous = {
372 ['<A-p>'] = '@parameter.inner',
373 },
365 }, 374 },
366 select = { 375 select = {
367 enable = true, 376 enable = true,
368 lookahead = true, 377 lookahead = true,
369 keymaps = { 378 keymaps = {