return { -- Highlight, edit, and navigate code 'nvim-treesitter/nvim-treesitter', dependencies = { 'nvim-treesitter/nvim-treesitter-textobjects', "windwp/nvim-ts-autotag", "JoosepAlviste/nvim-ts-context-commentstring", "nvim-treesitter/nvim-treesitter-context", }, cmd = { "TSBufDisable", "TSBufEnable", "TSBufToggle", "TSDisable", "TSEnable", "TSToggle", "TSInstall", "TSInstallInfo", "TSInstallSync", "TSModuleInfo", "TSUninstall", "TSUpdate", "TSUpdateSync", }, build = ":TSUpdate", opts = { highlight = { enable = true, disable = function(_, bufnr) return vim.api.nvim_buf_line_count(bufnr) > 10000 end, }, incremental_selection = { enable = true }, indent = { enable = true }, autotag = { enable = true }, context_commentstring = { enable = true, enable_autocmd = false }, }, }