return { "nvim-treesitter/nvim-treesitter", build = ":TSUpdate", -- ensures parsers stay updated event = { "BufReadPost", "BufNewFile" }, config = function() require("nvim-treesitter.configs").setup({ ensure_installed = { "python", "javascript", "go" }, highlight = { enable = true, additional_vim_regex_highlighting = false, }, indent = { enable = true, }, incremental_selection = { enable = true, keymaps = { init_selection = "", node_incremental = "", scope_incremental = "", node_decremental = "", }, }, 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_previous_start = { ["[m"] = "@function.outer", ["[["] = "@class.outer", }, }, }, }) end, }