Skip to content

Commit

Permalink
vim: make ]s, [s et al work (though not exactly as intended)
Browse files Browse the repository at this point in the history
Fixes up 79750ff9cc47adf55229557d63db99ac304503a5, based on comments in
nvim-treesitter/nvim-treesitter-textobjects#604 (comment).
  • Loading branch information
aktau committed Nov 18, 2024
1 parent 40f6a28 commit b8b9c22
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -474,19 +474,19 @@ if has('nvim')
set_jumps = true, -- whether to set jumps in the jumplist
goto_next_start = {
[']m'] = '@function.outer',
["]s"] = { query = "@scope", query_group = "locals", desc = "Next scope" },
["]s"] = { query = "@local.scope", query_group = "locals", desc = "Next scope" },
},
goto_next_end = {
[']M'] = '@function.outer',
["]S"] = { query = "@scope", query_group = "locals", desc = "Next scope" },
["]S"] = { query = "@local.scope", query_group = "locals", desc = "Next scope" },
},
goto_previous_start = {
['[m'] = '@function.outer',
["[s"] = { query = "@scope", query_group = "locals", desc = "Next scope" },
["[s"] = { query = "@local.scope", query_group = "locals", desc = "Next scope" },
},
goto_previous_end = {
['[M'] = '@function.outer',
["[S"] = { query = "@scope", query_group = "locals", desc = "Next scope" },
["[S"] = { query = "@local.scope", query_group = "locals", desc = "Next scope" },
},
},
swap = {
Expand Down

0 comments on commit b8b9c22

Please sign in to comment.