return { { "nvim-treesitter/nvim-treesitter", build = ":TSUpdate", event = { "BufReadPost", "BufNewFile" }, dependencies = { "nvim-treesitter/nvim-treesitter-textobjects", }, config = function() require("nvim-treesitter.install").prefer_git = true require("nvim-treesitter.configs").setup({ ensure_installed = { "bash", "c", "css", "go", "html", "javascript", "json", "lua", "markdown", "markdown_inline", "python", "rust", "tsx", "typescript", "vim", "vimdoc", "yaml", }, auto_install = true, highlight = { enable = true, additional_vim_regex_highlighting = false, }, indent = { enable = true, }, textobjects = { select = { enable = true, lookahead = true, keymaps = { ["af"] = "@function.outer", ["if"] = "@function.inner", ["ac"] = "@class.outer", ["ic"] = "@class.inner", }, }, move = { enable = true, set_jumps = true, goto_next_start = { ["]m"] = "@function.outer", ["]]"] = "@class.outer", }, goto_prev_start = { ["[m"] = "@function.outer", ["[["] = "@class.outer", }, }, }, }) end, }, }