2025-02-18 21:28:13 +00:00
|
|
|
return {
|
|
|
|
|
{
|
|
|
|
|
"nvim-treesitter/nvim-treesitter",
|
2025-10-10 11:16:59 +00:00
|
|
|
lazy = false,
|
|
|
|
|
branch = 'main',
|
2025-02-18 21:28:13 +00:00
|
|
|
build = ":TSUpdate",
|
|
|
|
|
dependencies = {
|
2025-10-10 11:16:59 +00:00
|
|
|
{
|
|
|
|
|
"nvim-treesitter/nvim-treesitter-textobjects",
|
|
|
|
|
branch = 'main'
|
|
|
|
|
}
|
2025-02-18 21:28:13 +00:00
|
|
|
},
|
|
|
|
|
opts = {
|
|
|
|
|
highlight = {
|
|
|
|
|
enable = true,
|
|
|
|
|
additional_vim_regex_highlighting = { "php" },
|
|
|
|
|
},
|
|
|
|
|
indent = {
|
|
|
|
|
enable = false,
|
|
|
|
|
},
|
|
|
|
|
textobjects = {
|
|
|
|
|
select = {
|
|
|
|
|
enable = true,
|
|
|
|
|
keymaps = {
|
|
|
|
|
["af"] = "@function.outer",
|
|
|
|
|
["if"] = "@function.inner",
|
|
|
|
|
["ia"] = "@parameter.inner",
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
swap = {
|
|
|
|
|
enable = true,
|
|
|
|
|
swap_next = {
|
|
|
|
|
["<leader>@"] = "@parameter.inner",
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
move = {
|
|
|
|
|
enable = true,
|
|
|
|
|
goto_next_start = {
|
|
|
|
|
["]]"] = "@function.outer",
|
|
|
|
|
},
|
|
|
|
|
goto_next_end = {
|
|
|
|
|
["]["] = "@function.outer",
|
|
|
|
|
},
|
|
|
|
|
goto_previous_start = {
|
|
|
|
|
["[["] = "@function.outer",
|
|
|
|
|
},
|
|
|
|
|
goto_previous_end = {
|
|
|
|
|
["[]"] = "@function.outer",
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"windwp/nvim-ts-autotag",
|
|
|
|
|
opts = {},
|
|
|
|
|
},
|
|
|
|
|
}
|