return { { "nvim-treesitter/nvim-treesitter", opts = function() return { highlight = { enable = true, disable = { "latex" }, additional_vim_regex_highlighting = { "latex", "markdown" }, }, indent = { enable = true, disable = { "python" } }, context_commentstring = { enable = true, enable_autocmd = false }, ensure_installed = { "bash", "c", "cpp", "html", "json", "lua", "luap", "markdown", "make", "markdown_inline", "scala", "python", "query", "toml", "regex", "vim", "yaml", }, incremental_selection = { enable = true, keymaps = { init_selection = "", node_incremental = "", scope_incremental = "\\", node_decremental = "", }, }, } end, rainbow = { enable = true, -- list of languages you want to disable the plugin for disable = { "jsx", "cpp" }, -- Which query to use for finding delimiters query = "rainbow-parens", -- Highlight the entire buffer all at once }, keys = function() return { { "", desc = "Increment selection" }, { "", desc = "Decrement selection", mode = "x" }, } end, }, }