mirror of
https://git.disroot.org/FollieHiyuki/dotfiles.git
synced 2024-12-12 17:18:22 -05:00
34 lines
993 B
Lua
34 lines
993 B
Lua
return require('nvim-treesitter.configs').setup {
|
|
textobjects = {
|
|
select = {
|
|
enable = true,
|
|
keymaps = {
|
|
["af"] = "@function.outer",
|
|
["if"] = "@function.inner",
|
|
["ac"] = "@class.outer",
|
|
["ic"] = "@class.inner"
|
|
}
|
|
},
|
|
move = {
|
|
enable = true,
|
|
set_jumps = true, -- whether to set jumps in the jumplist
|
|
goto_next_start = {
|
|
["]["] = "@function.outer",
|
|
["]m"] = "@class.outer"
|
|
},
|
|
goto_next_end = {
|
|
["]]"] = "@function.outer",
|
|
["]M"] = "@class.outer"
|
|
},
|
|
goto_previous_start = {
|
|
["[["] = "@function.outer",
|
|
["[m"] = "@class.outer"
|
|
},
|
|
goto_previous_end = {
|
|
["[]"] = "@function.outer",
|
|
["[M"] = "@class.outer"
|
|
}
|
|
}
|
|
}
|
|
}
|