-- nvim-treesitter: highlighting, indentation, and treesitter-based folds. -- All listed parsers ship PREBUILT in the plugin repo, so no compiler is needed -- for the configured languages. A C toolchain (base-devel) is only required if -- you add parsers that aren't prebuilt or force `:TSInstall` to recompile. -- Pinned to the legacy `master` branch, which keeps the declarative -- ensure_installed/highlight/indent API the old config used. The new `main` -- branch dropped this API in favor of do-it-yourself autocommands. return { { "nvim-treesitter/nvim-treesitter", branch = "master", event = "VeryLazy", build = ":TSUpdate", opts = { ensure_installed = { "bash", "css", "html", "javascript", "json", "lua", "markdown", "markdown_inline", "python", "query", "regex", "rust", "scss", "svelte", "tsx", "typescript", "vim", "yaml", }, highlight = { enable = true }, indent = { enable = true }, }, config = function(_, opts) require("nvim-treesitter.configs").setup(opts) end, }, }