Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronik committed Dec 25, 2024
1 parent 3a21988 commit ed8249d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,7 @@ vim.keymap.set('n', '<C-S-k>', '<cmd>Treewalker SwapUp<cr>', { noremap = true, s

I also utilize some
[nvim-treesitter-textobjects](https://github.com/nvim-treesitter/nvim-treesitter-textobjects?tab=readme-ov-file#text-objects-swap)
commands to round out the swap commands - `<C-S-{j,k,l,h}>` just feel really good to me, so might as well get the
lateral swapping as well. (This is not something that `Treewalker` needs to do as it already exists from other libraries)
commands to get lateral swapping (that way I get all four `<C-S-{h,j,k,l}>` maps):

```lua
vim.keymap.set('n', "<C-S-l>", ":TSTextobjectSwapNext @parameter.inner<CR>", { noremap = true, silent = true })
Expand Down

0 comments on commit ed8249d

Please sign in to comment.