Skip to content

Commit

Permalink
fix(nvim): treesitter navigation improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
caarlos0 committed Oct 7, 2024
1 parent bd88af2 commit 37df3e2
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions modules/neovim/config/lua/user/treesitter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -45,24 +45,24 @@ require("nvim-treesitter.configs").setup({
enable = true,
set_jumps = true,
goto_next_start = {
["]f"] = "@function.outer",
["]c"] = "@class.outer",
["]a"] = "@parameter.outer",
["]f"] = "@function.inner",
["]c"] = "@class.inner",
["]a"] = "@parameter.inner",
},
goto_next_end = {
["]F"] = "@function.outer",
["]C"] = "@class.outer",
["]A"] = "@parameter.outer",
["]F"] = "@function.inner",
["]C"] = "@class.inner",
["]A"] = "@parameter.inner",
},
goto_previous_start = {
["[f"] = "@function.outer",
["[c"] = "@class.outer",
["[a"] = "@parameter.outer",
["[f"] = "@function.inner",
["[c"] = "@class.inner",
["[a"] = "@parameter.inner",
},
goto_previous_end = {
["[F"] = "@function.outer",
["[C"] = "@class.outer",
["[A"] = "@parameter.outer",
["[F"] = "@function.inner",
["[C"] = "@class.inner",
["[A"] = "@parameter.inner",
},
},
select = {
Expand Down

0 comments on commit 37df3e2

Please sign in to comment.