Skip to content

Commit

Permalink
neovim: set key bindings for swapping params
Browse files Browse the repository at this point in the history
  • Loading branch information
geodimm committed Dec 21, 2023
1 parent ce01827 commit 1052e92
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions nvim/lua/plugins/treesitter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,15 @@ return {
['[]'] = '@class.outer',
},
},
swap = {
enable = true,
swap_next = {
['<leader>a'] = '@parameter.inner',
},
swap_previous = {
['<leader>A'] = '@parameter.inner',
},
},
},
},
config = function(_, opts)
Expand Down

0 comments on commit 1052e92

Please sign in to comment.