return { { "nvim-treesitter/nvim-treesitter", build = ":TSUpdate", lazy = false, branch = 'main', -- init = function(plugin) -- require("nvim-treesitter") -- end, -- TODO: old options format, need to reconfigure opts = { ensure_installed = { "python", "rust", "javascript" }, -- one of "all" or a list of languages ignore_install = { "phpdoc", "comment", "rst" }, -- List of parsers to ignore installing highlight = { enable = true, disable = { "css" }, }, autopairs = { enable = true, }, indent = { enable = true }, autotag = { enable = true, }, refactor = { highlight_definitions = { enable = false, -- Set to false if you have an `updatetime` of ~100. clear_on_cursor_move = true, }, smart_rename = { enable = false, keymaps = { smart_rename = "grr", }, }, }, }, config = function(_, opts) -- enable treesitter highlighting vim.api.nvim_create_autocmd("FileType", { callback = function(args) pcall(vim.treesitter.start, args.buf) end, }) end }, }