return { { "nvim-treesitter/nvim-treesitter", branch = "main", lazy = false, build = ":TSUpdate", config = function () local ts = require("nvim-treesitter") -- Automatically install your specified parsers ts.install({ "c", "cpp", "python", "vim", "vimdoc", "query" }) -- Enable highlighting and indentation using Neovim's built-in APIs vim.api.nvim_create_autocmd("FileType", { pattern = { "*.yml", "*.sql", "Dockerfile*", "CMakeLists*", "*.py", "*.c", "*.cpp", "*.h", "*.hpp" }, callback = function() -- Replaces highlight = { enable = true } vim.treesitter.start() -- Replaces indent = { enable = true } vim.bo.indentexpr = "v:lua.require'nvim-treesitter'.indentexpr()" end, }) end } }