return { { "nvim-treesitter/nvim-treesitter", version = false, -- last release is way too old and doesn't work on Windows build = ":TSUpdate", event = "BufReadPost", keys = { { "", desc = "Increment selection" }, { "", desc = "Schrink selection", mode = "x" }, }, ---@type TSConfig opts = { highlight = { enable = true }, indent = { enable = true }, context_commentstring = { enable = true, enable_autocmd = false }, ensure_installed = { "bash", "help", "html", "javascript", "json", "lua", "markdown", "markdown_inline", "python", "query", "regex", "tsx", "typescript", "vim", "yaml", }, incremental_selection = { enable = true, keymaps = { init_selection = "", node_incremental = "", scope_incremental = "", node_decremental = "", }, }, }, ---@param opts TSConfig config = function(plugin, opts) if plugin.ensure_installed then require("lazyvim.util").deprecate("treesitter.ensure_installed", "treesitter.opts.ensure_installed") end require("nvim-treesitter.configs").setup(opts) end, }, }