Mercurial > dotfiles
diff .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 |
line wrap: on
line diff
--- a/.chezmoitemplates/init.lua Thu Mar 30 05:12:28 2023 +0000 +++ b/.chezmoitemplates/init.lua Tue Jun 06 06:57:53 2023 +0000 @@ -363,6 +363,15 @@ goto_next_end = { [']['] = '@block.outer' }, goto_previous_end = { ['[]'] = '@block.outer' }, }, + swap = { + enable = true, + swap_next = { + ['<A-n>'] = '@parameter.inner', + }, + swap_previous = { + ['<A-p>'] = '@parameter.inner', + }, + }, select = { enable = true, lookahead = true,