|
|
@ -9,8 +9,7 @@ function M.setup()
|
|
|
|
return
|
|
|
|
return
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
local ts = require("nvim-treesitter.configs")
|
|
|
|
require("nvim-treesitter.configs").setup({
|
|
|
|
ts.setup({
|
|
|
|
|
|
|
|
textobjects = {
|
|
|
|
textobjects = {
|
|
|
|
select = {
|
|
|
|
select = {
|
|
|
|
enable = true,
|
|
|
|
enable = true,
|
|
|
@ -27,20 +26,16 @@ function M.setup()
|
|
|
|
enable = true,
|
|
|
|
enable = true,
|
|
|
|
set_jumps = true, -- whether to set jumps in the jumplist
|
|
|
|
set_jumps = true, -- whether to set jumps in the jumplist
|
|
|
|
goto_next_start = {
|
|
|
|
goto_next_start = {
|
|
|
|
["]m"] = "@function.outer",
|
|
|
|
["]]"] = "@function.outer",
|
|
|
|
["]]"] = "@class.outer",
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
goto_next_end = {
|
|
|
|
goto_next_end = {
|
|
|
|
["]M"] = "@function.outer",
|
|
|
|
["]["] = "@function.outer",
|
|
|
|
["]["] = "@class.outer",
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
goto_previous_start = {
|
|
|
|
goto_previous_start = {
|
|
|
|
["[m"] = "@function.outer",
|
|
|
|
["[["] = "@function.outer",
|
|
|
|
["[["] = "@class.outer",
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
goto_previous_end = {
|
|
|
|
goto_previous_end = {
|
|
|
|
["[M"] = "@function.outer",
|
|
|
|
["[]"] = "@function.outer",
|
|
|
|
["[]"] = "@class.outer",
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|