vim.pack.add({ "https://github.com/windwp/nvim-ts-autotag", "https://github.com/HiPhish/rainbow-delimiters.nvim", "https://github.com/RRethy/nvim-treesitter-endwise", "https://github.com/nvim-treesitter/nvim-treesitter-context", "https://github.com/nvim-treesitter/nvim-treesitter", }) require("nvim-treesitter").setup({ sync_install = false, auto_install = true, highlight = { enable = true }, autotag = { enable = true }, rainbow = { enable = true, extended_mode = true }, indent = { enable = true }, endwise = { enable = true }, }) vim.api.nvim_create_autocmd("PackChanged", { callback = function() vim.cmd("TSUpdate") end, }) require("treesitter-context").setup({ max_lines = 4, })